top | item 31858970

(no title)

jereze | 3 years ago

How do you create your components in Jinja2? Using the include tag?

discuss

order

nojs|3 years ago

I am using {% macro %}

drcongo|3 years ago

I'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.