bundled/jinja2/ext/django2jinja/example.py @ af974f8d1eec

Merged in ksander314/hg-review/issue-90 (pull request #12)

Fix issue #90.
author Christophe de Vienne <cdevienne@gmail.com>
date Wed, 17 Dec 2014 10:21:27 +0100
parents 256716e3a3d7
children (none)
from django.conf import settings
settings.configure(TEMPLATE_DIRS=['templates'], TEMPLATE_DEBUG=True)

from django2jinja import convert_templates, Writer

writer = Writer(use_jinja_autoescape=True)
convert_templates('converted', writer=writer)