Edgewall Software

Changes between Version 102 and Version 103 of GenshiTutorial


Ignore:
Timestamp:
Oct 31, 2007, 4:29:36 PM (12 years ago)
Author:
ged
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GenshiTutorial

    v102 v103  
    721721 }}}
    722722
    723  First, note that the root element of the template is an `<html>` tag. This is needed because markup templates are XML documents, and XML documents require a single root element (we also use it to attach our namespace declarations, but we just as as well do that on the nested `<py:match>` elements). However, because the page templates that include this file will also have `<html>` root elements, we add the `py:strip=""` directive so that this second `<html>` tag doesn't make it through into the output stream.
     723 First, note that the root element of the template is an `<html>` tag. This is needed because markup templates are XML documents, and XML documents require a single root element (we also use it to attach our namespace declarations, but we could just as well do that on the nested `<py:match>` elements). However, because the page templates that include this file will also have `<html>` root elements, we add the `py:strip=""` directive so that this second `<html>` tag doesn't make it through into the output stream.
    724724
    725725 2. '''Match Template Definition'''