steveire / grantlee

Libraries for text templating with Qt
Other
141 stars 48 forks source link

Add support for new template buildin "with" syntax #29

Closed dantti closed 3 years ago

dantti commented 8 years ago

This {% with alpha=1 beta=2 %} is not supported atm: https://docs.djangoproject.com/en/1.9/ref/templates/builtins/#with

asmaloney commented 7 years ago

This would be really helpful with include:

https://docs.djangoproject.com/en/1.11/ref/templates/builtins/#include

{% include "name_snippet.html" with person="Jane" greeting="Hello" %}

steveire commented 3 years ago

Cherry-picked your change from cutelee