Changes between Version 1 and Version 2 of TracDev/PortingFromGenshiToJinja/Example
- Timestamp:
- Jan 14, 2017, 11:36:19 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/PortingFromGenshiToJinja/Example
v1 v2 1 1 = Conversion example 2 2 3 Here we detail the conversion process of a sample Genshi template ([source:tags/trac-1. 0.9/trac/wiki/templates/wiki_view.html wiki_view.html]) into the corresponding Jinja2 template ([source:cboos.git/trac/wiki/templates/jwiki_view.html jwiki_view.html]).3 Here we detail the conversion process of a sample Genshi template ([source:tags/trac-1.3.1/trac/wiki/templates/wiki_view.html wiki_view.html]) into the corresponding Jinja2 template ([source:cboos.git/trac/wiki/templates/wiki_view.html@jinja2-trunk-r15341 wiki_view.html]). 4 4 5 5 As will become apparent, we mainly use [http://jinja.pocoo.org/docs/dev/templates/#line-statements line statements] for the Jinja2 control structures.