Julien Cigar
jcigar at ulb.ac.be
Sun Aug 20 05:55:18 EDT 2006
Jim Gallacher wrote: > Julien Cigar wrote: > >> Hi, >> >> I suggest simpleTAL, it's a port or ZPT which doesn't require Zope. >> It's quite fast (especially compared to Kid), and much more powerful >> than Kid. Despite the fact that I don't like Zope, I must admit that >> their template language is interesting. I especially like the concept of >> "slots", which allow to split up and reuse templates in a very elegant >> manner. >> I haven't looked at the i18n support yet, but I *think* that simpleTAL >> supports the i18n tags .. >> > > It is also possible to use the ZPT from Zope3 separately from Zope as > well. I haven't done much beyond a little experimentation and that was > Yep it can be found here http://svn.zope.org/zope.pagetemplate/trunk/ I should take a look at that ... > some time ago. You'll need to google to find more information. I did > find it to be much slower than PSP (by a factor of 10??? - fuzzy memory). > > Yes it's slower ... first because it's written in Python and not in C (flex) as the PSP parser, seconde because it's an "XML-based" engine, where PSP, Clearsilver, ... are "text-based" engines (which are always faster). But it doesn't take seconds to render the template, it's just ~0,3 ms vs ~3 ms (there are some benchmarks here http://markup.edgewall.org/wiki/MarkupPerformance). > As much as I like ZPT (and simpleTAL) I decided that the extra > dependency and loss of performance was not worth the effort, but then I > don't need Unicode stuff. ;) I do miss some of the ZPT features though. > > It's one of the things I didn't like in Zope: tons of dependencies (a true nightmare when you have to upgrade). > Jim > > Julien
|