Edgewall Software

Changes between Version 86 and Version 87 of GenshiTutorial


Ignore:
Timestamp:
Sep 6, 2007, 4:46:14 PM (17 years ago)
Author:
mahdi@…
Comment:

Two small spelling errors corrected

Legend:

Unmodified
Added
Removed
Modified
  • GenshiTutorial

    v86 v87  
    336336}}}
    337337
    338 This template demontrates some aspects of Genshi that we've not seen so far:
     338This template demonstrates some aspects of Genshi that we've not seen so far:
    339339 * 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.
    340340 * 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.
     
    527527}}}
    528528
    529 So now, if you submit the form without enterering a title, and having entered an invalid URL, you'd see something like the following:
     529So now, if you submit the form without entering a title, and having entered an invalid URL, you'd see something like the following:
    530530
    531531[[Image(tutorial02.png)]]