¡@

Home 

python Programming Glossary: endmacro

Mako or Jinja2? [closed]

http://stackoverflow.com/questions/3435972/mako-or-jinja2

macro make_row row tr for name in row td name td endfor tr endmacro Jinja2 has filters which I'm told Mako also has but I've not..

Insert javascript at top of including file in Jinja 2

http://stackoverflow.com/questions/4292630/insert-javascript-at-top-of-including-file-in-jinja-2

try caller catch e my.log.error e.name e.message endblock endmacro Some ... div id abc text div ... call js jquery parlance function.. such as macro js2 block head_js ... something endblock endmacro I get the following exception jinja2.exceptions.TemplateAssertionError..

Import a Python module into a Jinja template?

http://stackoverflow.com/questions/4828406/import-a-python-module-into-a-jinja-template

macro time mytime a title mytime timesince mytime a endmacro Because format.py is not a template the code above gives me..

Use blocks from included files for parent in jinja2

http://stackoverflow.com/questions/9624953/use-blocks-from-included-files-for-parent-in-jinja2

File T3 macro inner2 block t3 CONTENT ' foo 1 ' block t3 endmacro macro inner hello endmacro test.py from jinja2 import Environment.. t3 CONTENT ' foo 1 ' block t3 endmacro macro inner hello endmacro test.py from jinja2 import Environment FileSystemLoader env..