jinja2 

Send to Kindle
home » snippets » python » jinja2


Pages
example        



Basics


Snippets

template.module

t = Template('{% macro foo() %}42{% endmacro %}23')
unicode(t.module)
# u'23'
t.module.foo()
# u'42'