Hey all,
today I checked in a revised syntax for text templates.
While the old
syntax was inspired by Cheetah/Velocity, the new one is more
Django-
like, using more explicit delimiting of directives. This
makes the
text template language more powerful and flexibile when
dealing with
whitespace/linebreak-sensitive output formats.
The old syntax is staying around for at least two more major
releases. There are two classes now,
genshi.template.OldTextTemplate
and genshi.template.NewTextTemplate. OldTextTemplate is
aliased to
TextTemplate. The migration plan I have in mind is: in the
0.6
release, TextTemplate will instead be an alias to
NewTextTemplate,
and in the 0.7 release OldTextTemplate will be removed.
I'd welcome any feedback on this. For more information,
see:
<http://genshi.edgewall.org/wiki/Documentati
on/text-templates.html>
<http://genshi.edgewall.org/browser/trunk/gen
shi/template/text.py>
Thanks,
Chris
--
Christopher Lenz
cmlenz at gmx.de
http://www.cmlenz.net/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Genshi" group.
To post to this group, send email to genshi googlegroups.com
To unsubscribe from this group, send email to
genshi-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/genshi?hl=en
-~----------~----~----~----~------~----~------~--~---
|