= Text based = Myghty / Mako The text engines work on text and although are a bit faster than XML- based engines they don't provide well-formed XML output neither correct HTML output. So we must not use them for HTML/XML output.
= XML based = Kid / Genshi Kid and Genshi are well formed XML and should validate. Genshi provides an integrated set of components to parsing, generating, and processing HTML, XML or other textual content for output generation on the web. Read these paragraphs where is explained why don't use text-based templates: - http://genshi.edgewall.org/wiki/GenshiFaq#WhyXML-based This one has been created by Tim Bray, co-editor of the XML 1.0 specification: - http://hsivonen.iki.fi/producing-xml/#notexttemplates = DSL = Brevé Brevé_ is inspired by Stan, and can be used for XML output, and then use XSLT to turn it into whatever format needed. The author, Cliff Wells, wrote the next post_. .. _Brevé: http://breve.twisty-industries.com/ .. _post: http://blog.twisty-industries.com/users/cliff/python-template-engines-why-reinvent-php = Conclusion = Though Pylons has choosed a text-based template engine by default it doesn't mean that it should be valid for everything. The speed is not so important, it is more important to get a well formed output for HTML/XML. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
