diff demo.py @ 4759:fd90ad41d34d

- Update demo.py to be able to run jinja2 template - Add jinja template as a new feature
author Pradip Caulagi <caulagi@gmail.com>
date Tue, 05 Feb 2013 15:06:10 +0530
parents c67c925e4037
children a89f1e9f3ee3
line wrap: on
line diff
--- a/demo.py	Mon Feb 04 22:30:03 2013 +0530
+++ b/demo.py	Tue Feb 05 15:06:10 2013 +0530
@@ -93,6 +93,9 @@
     # FIXME: Move template-specific demo initialization into the templates.
     if template == 'responsive':
         config['STATIC_FILES'] = "static"
+    if template == 'jinja2':
+        config['TEMPLATE_ENGINE'] = 'jinja2'
+        config['STATIC_FILES'] = "static"
     config.save(os.path.join(home, config.INI_FILE))
 
     # open the tracker and initialise

Roundup Issue Tracker: http://roundup-tracker.org/