How to pass selected, named arguments to Jinja2’s include context?
Jinja2 has an extension that enables the with keyword – it won’t give you the same syntax as Django, and it may not work the way you anticipate but you could do this: {% with articles=articles_list1 %} {% include “list.html” %} {% endwith %} {% with articles=articles_list2 %} {% include “list.html” %} {% endwith %} … Read more