Skip to content

Commit cdc7ecd

Browse files
committed
- Update demo.py to be able to run jinja2 template
- Add jinja template as a new feature
1 parent e66a077 commit cdc7ecd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGES.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Entries without name were done by Richard Jones.
77

88
Features:
99

10+
- A new jinja2 template based on Classic schema and using Twitter
11+
bootstrap for responsive behaviour. Run as -
12+
python demo.py -t jinja2 nuke (Pradip P Caulagi)
1013
- Renamed old Templates classes to Loader classes to clarify sources
1114
for alternative templating engines, updated docs (anatoly techtonik)
1215
- Template selection code is moved from Loader classes into cgi.client
@@ -15,7 +18,7 @@ Features:
1518
client.selectTemplate (anatoly techtonik)
1619
- Experimental proof of concept code for Jinja2 templating engine.
1720
Select 'jinja2' template_engine in config and place templates into
18-
html/jinja2 to play with (anatoly techtonik)
21+
html to play with (anatoly techtonik)
1922
- Introducing Template Loader API (anatoly techtonik)
2023

2124
Fixed:

demo.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ def install_demo(home, backend, template):
9393
# FIXME: Move template-specific demo initialization into the templates.
9494
if template == 'responsive':
9595
config['STATIC_FILES'] = "static"
96+
if template == 'jinja2':
97+
config['TEMPLATE_ENGINE'] = 'jinja2'
98+
config['STATIC_FILES'] = "static"
9699
config.save(os.path.join(home, config.INI_FILE))
97100

98101
# open the tracker and initialise

0 commit comments

Comments
 (0)