Edgewall Software

Changes between Version 2 and Version 3 of TracDev/PortingFromGenshiToJinja/Example


Ignore:
Timestamp:
Jan 15, 2017, 12:46:05 AM (7 years ago)
Author:
Christian Boos
Comment:

remove some more 'j's

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/PortingFromGenshiToJinja/Example

    v2 v3  
    66Note 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).
    77
    8 {{{#!th style="max-width: 200px"
     8{{{#!th
    99wiki_view.html (Genshi template)
    1010}}}
    11 {{{#!th style="max-width: 200px"
    12 jwiki_view.html (Jinja2 template)
     11{{{#!th
     12wiki_view.html (Jinja2 template)
    1313}}}
    1414|------
     
    5151{{{#!td
    5252{{{#!html+jinja
    53 # extends "jlayout.html"
     53# extends "layout.html"
    5454}}}
    5555}}}
     
    419419      #   set compact = True
    420420      #   set foldable = True
    421       #   include "jlist_of_attachments.html"
     421      #   include "list_of_attachments.html"
    422422      # endwith
    423423}}}
     
    543543        #   if page.exists:
    544544        #     with alist = attachments
    545         #       include "jattach_file_form.html"
     545        #       include "attach_file_form.html"
    546546        #     endwith
    547547        #   endif
     
    550550}}}
    551551|-----------------------------------------------------------------------------
    552 |||| We pass `attachments` as `alist` to the included template (a `j...` template, obviously). ||
     552|||| We pass `attachments` as `alist` to the included template. ||
    553553|-----------------------------------------------------------------------------
    554554{{{#!td