Edgewall Software

Changes between Version 3 and Version 4 of TracDev/ApiChanges/0.11


Ignore:
Timestamp:
Sep 13, 2006, 3:14:47 PM (18 years ago)
Author:
Christian Boos
Comment:

minor cosmetic fixes

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/ApiChanges/0.11

    v3 v4  
    148148Some remarks:
    149149 - Note the possible use of multiple genshi attributes in the same element
    150    (in the above, the <li> element has a py:for and a py:choose attributes).
     150   (in the above, the `<li>` element has a `py:for` and a `py:choose` attribute).
    151151 - When there's only one element to output conditionally, one should use a genshi attribute
    152    (the py:for=project in projets" and the py:when="project.href" in the above).
    153    Otherwise, one should use a genshi element (here, the <py:otherwise>).
     152   (the `py:for="project in projets"` and the `py:when="project.href"` in the above).
     153   Otherwise, one should use a genshi element (here, the `<py:otherwise>`).
    154154 - In this small example, there's no common Trac layout used (as the index is a bit special).
    155155   For how a "normal" template looks like, see for example
    156    [source:sandbox/genshi/templates/diff_form.html diff_form.html], another small example.
     156   [source:sandbox/genshi/templates/diff_form.html diff_form.html], another small template.
    157157
    158158Note that a Genshi template can usually be rendered directly to have a taste of how it will look like: