Convert post edit form from raw HTML to SX expressions

Replace _post_edit_content_sx raw HTML builder with sx_call() pattern
matching render_editor_panel. Add ~blog-editor-edit-form,
~blog-editor-publish-js, ~blog-editor-sx-initial components to
editor.sx. Fixes (~sx-editor-styles) rendering as literal text on
the edit page.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-03 15:53:50 +00:00
parent 544892edd9
commit df8b19ccb8
3 changed files with 166 additions and 153 deletions

View File

@@ -378,6 +378,7 @@ def sx_call(component_name: str, **kwargs: Any) -> str:
return "(" + " ".join(parts) + ")"
def components_for_request() -> str:
"""Return defcomp/defmacro source for definitions the client doesn't have yet.