Edgewall Software

Changes between Version 9 and Version 10 of GenshiFaq


Ignore:
Timestamp:
Jul 11, 2006, 8:52:55 PM (18 years ago)
Author:
cmlenz
Comment:

Add Q/A about includes

Legend:

Unmodified
Added
Removed
Modified
  • GenshiFaq

    v9 v10  
    5050 * Different serialization methods (XML and HTML) for streams.
    5151 * An HTML “sanitizing” filter to strip potentially dangerous elements or attributes from user-submitted HTML markup.
     52
     53== Why use includes instead of inheritance? ==
     54
     55We think that includes are both simpler and more natural for templating.
     56
     57Template inheritance is a concept that fits well with template languages where a master template provide “slots” that are “filled” by the inheriting templates. However, Markup has no such feature, and instead uses the more powerful and flexible concept of [wiki:MarkupTemplates#py:match match templates].
     58
     59Furthermore, XInclude is a W3C standard, which means that it is more likely to be supported in authoring tools than some esoteric custom notation for including external resources.