Skip to content

Conversation

@blag
Copy link
Contributor

@blag blag commented May 28, 2025

Closes #325, #383, #455, and #457.

I reworked #383 against the current master branch.

I rely on the migration from #490, so this will fail until that is merged and this branch is rebased.

This has the same caveats as #383.

I couldn't figure out how to nicely move the code into a separate admin view.

Ideally we would actually support a live-ish preview where we ship the content or HTML content values off along with the example context every time the user stops typing (after a small timeout). But that's outside my bailiwick so I didn't want to attempt that.

Initially I tried working without an example_context model field, but I came around to the idea of it eventually. Writing that will assist the next template editor by giving them a context that is ready to go.

@blag blag force-pushed the rendered-previews-in-admin branch from c071d76 to b8d94d7 Compare May 28, 2025 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rendered preview in admin

1 participant