python - Jinja2 extension multiple keyword arguments -


i can not find how pass multiple named arguments jinja2 extension. want that:

{% some_extension foo='foo' bar='bar' %}     data {% end_someextension %} 

{% macro some_extension(foo='foo', bar="bar") %}     {{ foo }}, {{bar}} {% endmacro %} 

is looking for??


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -