On 01/16/2010 01:49 AM, Florent Gallaire wrote:
I'd like to vote against wasting time to edit XML by hand, that is
next worse to, well... torture.
The beauty of Jinja (or Django for that matter) comes from the very
*fact* it is not XML, it is used to template *any kind* of documents.
Yes, this is an old troll, closed by GvR :
http://www.artima.com/weblogs/viewpost.jsp?thread=146606
Florent
Thanks for the various links , however the link above doesn't really apply:
1) GvR compares Django to Cheetah, and the latter has really nothing in
common with Genshi
2) GvR major con "the inability to do a proper if-then-else in XML make
template writing using XML a non-starter." doesn't apply to Genshi
either, because you can embedd any valid
python code in Genshi templates ( including , of course, humble
if-then-else statements). Genshi uses a special XML namespace for this,
so embedded python code doesn't invalidate the XML rules.
3) Genshi can generate , in addition to XML , any text output, in fact
it is a XML template and text template framework in one product
4) I am not a fan of XML too, but, toegether with XML mode of emacs (
including automatic validation, indenting and highlighting ) I still
find it easier to edit than less structured markup
because the hierarchical structure helps in my opinion when working on
complex documents.
Anyway, thanks for all the comments
Peter
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" 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/sphinx-dev?hl=en.