Changes between Version 4 and Version 5 of GenshiRecipes/PyExtendsEquivalent
- Timestamp:
- Sep 12, 2006, 12:35:47 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GenshiRecipes/PyExtendsEquivalent
v4 v5 1 = [ MarkupRecipes MarkupRecipes]: Replacing `py:extends` with Includes =1 = [GenshiRecipes Genshi Recipes]: Replacing `py:extends` with Includes = 2 2 3 As noted in MarkupVsKid, Markup does not support the `py:extends` directive for template reuse.3 As noted in GenshiVsKid, Markup does not support the `py:extends` directive for template reuse. 4 4 5 This page shows how the [http://www.kid-templating.org/language.html#template-reuse-py-extends example] from the Kid language specification translates to a functionally equivalent setup in Markup.5 This page shows how the [http://www.kid-templating.org/language.html#template-reuse-py-extends example] from the Kid language specification translates to a functionally equivalent setup in Genshi. 6 6 7 7 Assume the following base template, stored as `base.html`: … … 9 9 {{{ 10 10 #!xml 11 <html xmlns:py="http:// markup.edgewall.org/" py:strip="">11 <html xmlns:py="http://genshi.edgewall.org/" py:strip=""> 12 12 13 13 <ul py:def="display_errors(errors)"> … … 24 24 {{{ 25 25 #!xml 26 <html xmlns:py="http:// markup.edgewall.org/"26 <html xmlns:py="http://genshi.edgewall.org/" 27 27 xmlns:xi="http://www.w3.org/2001/XInclude"> 28 28 <xi:include href="base.html" /> … … 57 57 58 58 ---- 59 See also: MarkupRecipes/PyLayoutEquivalent, MarkupRecipes, MarkupVsKid, MarkupTemplates59 See also: GenshiRecipes/PyLayoutEquivalent, GenshiRecipes, GenshiVsKid, [wiki:Documentation/xml-templates.html Genshi XML Template Language]