9 ms·
How do you create your components in Jinja2? Using the include tag?
by jereze 4y ago
How do you create your components in Jinja2? Using the include tag?
- nojs 4y agoI am using {% macro %}
- drcongo 4y agoI've been gradually removing all use of Jinja macros from our projects as they make debugging so much more painful. Everything now goes in template globals, which lets you debug them the same as anything else, gives far clearer stack traces and lets you do clever things with caching.