Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a WYSIWYG editor that supports mako? #382

Open
oriolpiera opened this issue Nov 10, 2023 · 2 comments
Open

Is there a WYSIWYG editor that supports mako? #382

oriolpiera opened this issue Nov 10, 2023 · 2 comments

Comments

@oriolpiera
Copy link

I don't know if is the right place to put that question. I apologize if it is the case.

We use mako templates, but we are affraid of users to beak python code in the template, so we edit all the changes in the template (even typos).

So, are there some WYSIWYG web editors (like CKEditor) that supports mako template language, to block edition of mako tags <% %> and allow to modify all other html text?

Thanks,

@zzzeek
Copy link
Member

zzzeek commented Nov 10, 2023

I'm not familiar with a tool like that. Truth be told this seems like you would do better with jinja templates instead, which have very limited logic within them. Mako as you might have noticed is pretty niche at this point :)

@jvanasco
Copy link
Member

I suggest using Dust. It's originally a javascript templating library, but is implemented in Python via Ashes for serverside rendering. I have a few projects where user-generated dust templates are rendered in Ashes and the output is placed into Mako templates. I believe some WYSIWYG editors supported it, and others had hooks to support it.

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

No branches or pull requests

3 participants