Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
devtools
/
rootAnalysis
/
ra.away
/
tools
/
lib
/
python
/
vendor
/
Jinja2-2.7.3
/
ext
/
django2jinja
/
example.py
blob: 2d4ab9add849a874fe5b6620966848b563bacfc2 [
file
] [
log
] [
blame
]
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
)