Thursday, 12 September 2019

Flask/Jinja2 - Include template relative to current template

Is there a syntax for referencing a local file? For example

Instead of having to write :

Liquid error: This liquid context does not allow includes.

I want to write (from a template that's in the same directory as tab.html):

Liquid error: This liquid context does not allow includes.

But the above raises jinja2.exceptions.TemplateNotFound



from Flask/Jinja2 - Include template relative to current template

No comments:

Post a Comment