Using Jinja2, is it possible to disable the tag and / or filter?

I have templates that are saved in the database (my clients will create them). I do not want my clients to be able to expand their templates (I know, I know, this is an evil evil). I want them to be able to include fragments, but not extend the templates. How to disable or remove a tag {% extends %}, as well as how to remove filters, if I do it later too?

+3
source share
1 answer

If templates are saved in the database, you should be able to filter extensions before saving.

+2
source

All Articles