Changes between Version 2 and Version 3 of TracDev/PortingFromGenshiToJinja/Example
- Timestamp:
- Jan 15, 2017, 12:46:05 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/PortingFromGenshiToJinja/Example
v2 v3 6 6 Note that we have reformatted the Genshi template to use shorter line widths, so that both columns of the table below stay visible (a wide screen also helps). 7 7 8 {{{#!th style="max-width: 200px"8 {{{#!th 9 9 wiki_view.html (Genshi template) 10 10 }}} 11 {{{#!th style="max-width: 200px"12 jwiki_view.html (Jinja2 template)11 {{{#!th 12 wiki_view.html (Jinja2 template) 13 13 }}} 14 14 |------ … … 51 51 {{{#!td 52 52 {{{#!html+jinja 53 # extends " jlayout.html"53 # extends "layout.html" 54 54 }}} 55 55 }}} … … 419 419 # set compact = True 420 420 # set foldable = True 421 # include " jlist_of_attachments.html"421 # include "list_of_attachments.html" 422 422 # endwith 423 423 }}} … … 543 543 # if page.exists: 544 544 # with alist = attachments 545 # include " jattach_file_form.html"545 # include "attach_file_form.html" 546 546 # endwith 547 547 # endif … … 550 550 }}} 551 551 |----------------------------------------------------------------------------- 552 |||| We pass `attachments` as `alist` to the included template (a `j...` template, obviously). ||552 |||| We pass `attachments` as `alist` to the included template. || 553 553 |----------------------------------------------------------------------------- 554 554 {{{#!td