changeset 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 fb0496108242
children efdce3d32698
files CHANGES.txt demo.py
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Mon Feb 04 22:30:03 2013 +0530
+++ b/CHANGES.txt	Tue Feb 05 15:06:10 2013 +0530
@@ -7,6 +7,9 @@
 
 Features:
 
+- A new jinja2 template based on Classic schema and using Twitter
+  bootstrap for responsive behaviour.  Run as - 
+  python demo.py -t jinja2 nuke (Pradip P Caulagi)
 - Renamed old Templates classes to Loader classes to clarify sources
   for alternative templating engines, updated docs (anatoly techtonik)
 - Template selection code is moved from Loader classes into cgi.client
@@ -15,7 +18,7 @@
   client.selectTemplate (anatoly techtonik)
 - Experimental proof of concept code for Jinja2 templating engine.
   Select 'jinja2' template_engine in config and place templates into 
-  html/jinja2 to play with (anatoly techtonik)
+  html to play with (anatoly techtonik)
 - Introducing Template Loader API (anatoly techtonik)
 
 Fixed:
--- 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/