Edgewall Software

Changes between Version 4 and Version 5 of GenshiVsKid


Ignore:
Timestamp:
Aug 25, 2006, 3:00:41 PM (18 years ago)
Author:
David Fraser <davidf@…>
Comment:

notes on minor syntactic differences

Legend:

Unmodified
Added
Removed
Modified
  • GenshiVsKid

    v4 v5  
    1818 * `py:match` directives use (basic) XPath expressions to match against input nodes, making match templates more powerful while keeping the syntax simple (see the [source:/trunk/markup/path.py markup.path] module)
    1919 * Additional directives `py:choose` / `py:when` / `py:otherwise` to better support multi-branch conditionals (aka ''if, else if, else'').
    20  * It is possible to include markup that is not well-formed in the output (which you may need to do [http://pyre.third-bit.com/blog/archives/000417.html some]  [http://groups.google.com/group/turbogears/browse_thread/thread/f8c0c9800b6aabae/ca12dea6a9729da9?lnk=gst&q=kid+questions&rnum=1 cases]). And if you need to include bad HTML markup but would like to still produce valid output, Markup provides a ''HTML-sanitizing'' stream filter.
     20 * It is possible to include markup that is not well-formed in the output (which you may need to do in [http://pyre.third-bit.com/blog/archives/000417.html some]  [http://groups.google.com/group/turbogears/browse_thread/thread/f8c0c9800b6aabae/ca12dea6a9729da9?lnk=gst&q=kid+questions&rnum=1 cases]). And if you need to include bad HTML markup but would like to still produce valid output, Markup provides a ''HTML-sanitizing'' stream filter.
    2121 * Real (thread-safe) search path support
    2222 * No dependency on ElementTree (due to the lack of position reporting)
    2323 * The original location of parse events is kept throughout the processing pipeline, so that errors can be tracked back to a specific line/column in the template file
    2424
     25Other minor syntactic changes (useful when converting):
     26 * The XML Namespace used is `http://markup.edgewall.org/`, not `http://purl.org/kid/ns#"`
     27 * `py:attrs` takes a dictionary argument or list of tuples but doesn't support keyword arguments in the form `name=value`
    2528----
    2629See also: MarkupFaq, MarkupPerformance