Changes between Version 3 and Version 4 of TracDev/ApiChanges/0.11
- Timestamp:
- Sep 13, 2006, 3:14:47 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/ApiChanges/0.11
v3 v4 148 148 Some remarks: 149 149 - 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). 151 151 - 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>`). 154 154 - In this small example, there's no common Trac layout used (as the index is a bit special). 155 155 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. 157 157 158 158 Note that a Genshi template can usually be rendered directly to have a taste of how it will look like: