Exposing templates to user. Mako vs Jinja2 templating engines
-
07-08-2022 - |
题
I'm trying to decide what template engine to use. We have decided to use Mako for the product but I don't know if it's a fit for my current project.
It seems like Jinja2 can run sandboxed to prevent the user from running python code like users.delete
. Is there something similar in Mako?
In Jinja2 there is the loaders (doc). Is there something like it in Mako? I need it to be possible to load from database and not filesystem.
If there are other engine faster and with the above functionality included I'm all ears.
没有正确的解决方案
不隶属于 StackOverflow