Changes between Version 7 and Version 8 of GenshiRecipes/PyExtendsEquivalent
- Timestamp:
- Dec 3, 2009, 2:25:01 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GenshiRecipes/PyExtendsEquivalent
v7 v8 37 37 }}} 38 38 39 The “trick” here is that the base template is included at the top of the page template. This results in the template function `display_errors()` being available to the page template, and the match template being applied to the output generated by the page template. 39 The “trick” here is that the base template is included at the top of the page template. This results in the template function `display_errors()` being available to the page template, and the match template being applied to the output generated by the page template. If you write python code to directly run this example, be sure to use the TemplateLoader class to load `page.html`. If you use the MarkupTemplate class, XInclude processing is silently disabled. 40 40 41 41 When rendered, these will produce the following output: