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 -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -