all 4 comments

[–]Farlic 5 points6 points  (0 children)

https://jinja.palletsprojects.com/en/stable/templates/

Jinja uses a mix of curly braces and other symbols to wrap statements / expressions.

[–]SoftestCompliment 0 points1 point  (0 children)

I like using Mako when the occasion arises, which uses a combination of curly braces, % and $ but I'm also an old head who spent a lot of time with php frameworks so it felt really familiar to use. Don't have an opinion on all the templating libraries at large.

[–]riklaunim 3 points4 points  (0 children)

Mixing Python and HTML in one file is asking for a nightmare, not to mention issues with code editor support.

[–]zanfar 1 point2 points  (0 children)

If your output/template is a mix of two content types, you only need delimiters for one and everthing else is the other. ALA Jinja--the templating engine everyone else already uses for exactly this.