Changes between Version 86 and Version 87 of GenshiTutorial
- Timestamp:
- Sep 6, 2007, 4:46:14 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GenshiTutorial
v86 v87 336 336 }}} 337 337 338 This template demon trates some aspects of Genshi that we've not seen so far:338 This template demonstrates some aspects of Genshi that we've not seen so far: 339 339 * We declare the `py:` namespace prefix on the `<html>` element, which is required to be able to add [wiki:Documentation/xml-templates.html#template-directives directives] to the template. 340 340 * There's a `py:if` [wiki:Documentation/xml-templates.html#conditional-sections condition] on the `<ol>` element. That means that the `<ol>` and everything it contains will only be included in the output stream if the expression `links` evaluates to a truth value. In this case we know that `links` is a list (assembled by the `Root.index()` method), so if the list is empty, the `<ol>` will be skipped. … … 527 527 }}} 528 528 529 So now, if you submit the form without enter ering a title, and having entered an invalid URL, you'd see something like the following:529 So now, if you submit the form without entering a title, and having entered an invalid URL, you'd see something like the following: 530 530 531 531 [[Image(tutorial02.png)]]