Skip to content Skip to sidebar Skip to footer

Why Does This Jinja Macro Render Text Instead Of Html?

I have the following template called post-macro, but when I call the macro in the page.html template, it inserts a string, with quotes, containing the HTML, rather than directly in

Solution 1:

Rename the post-macro template to post-macro.html and Jinja will render HTML directly.


Post a Comment for "Why Does This Jinja Macro Render Text Instead Of Html?"