Changes between Version 5 and Version 6 of GenshiRecipes/PyLayoutEquivalent
- Timestamp:
- Sep 12, 2006, 12:36:52 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GenshiRecipes/PyLayoutEquivalent
v5 v6 1 = [ MarkupRecipes MarkupRecipes]: Replacing `py:layout` with Includes =1 = [GenshiRecipes Genshi Recipes]: Replacing `py:layout` with Includes = 2 2 3 As noted in MarkupVsKid, Markup does not support the `py:layout` directive for template reuse.3 As noted in GenshiVsKid, Markup does not support the `py:layout` directive for template reuse. 4 4 5 This page shows how the [http://www.kid-templating.org/language.html#layout-templates-py-layout 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#layout-templates-py-layout example] from the Kid language specification translates to a functionally equivalent setup in Genshi. 6 6 7 7 Assume the following layout template, stored as `layout.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 <head> … … 33 33 {{{ 34 34 #!xml 35 <html xmlns:py="http:// markup.edgewall.org/"35 <html xmlns:py="http://genshi.edgewall.org/" 36 36 xmlns:xi="http://www.w3.org/2001/XInclude"> 37 37 … … 81 81 82 82 ---- 83 See also: MarkupRecipes/PyExtendsEquivalent, MarkupRecipes, MarkupVsKid, MarkupTemplates83 See also: GenshiRecipes/PyExtendsEquivalent, GenshiRecipes, GenshiVsKid, [wiki:Documentation/xml-templates.html Genshi XML Template Language]