< lxml 0.5.1 released
the Clarity Template Language >

[Comments] (2) Clarity, ClearSilver integration for Zope 3:

I've just checked in a new package into the Zope 3 base subversion repository called Clarity. What it does is integrate ClearSilver templating into Zope 3 (trunk, though I expect Zope X3.0 or even Five support should be easy enough). It's all still rough, but initial tests show ClearSilver templates can be quite a bit faster than ZPT, and they have other possible benefits. In my simplistic experiments I got transaction rates about 2 to 5 times higher than you can reach with ZPT, testing this with the 'siege' utility.

Here's an extract from the README that describes the motivation for this experiment.

Why?

Zope 3 already has page template and even DTML, why would I want to use this? Some possible benefits ClearSilver brings are:

However, since no significant codebases exist that use this facility, these benefits are somewhat speculative.

More info and download

More about ClearSilver here:

http://www.clearsilver.net

A comparison with other templating system and a motivation for its design, which they call dataset driven templates, can be found here.

Among other systems which use ClearSilver templates is Trac, the Python-based software project management tool:

http://projects.edgewall.com/trac/

You can check out Clarity from the Zope 3 base, here:

http://codespeak.net/svn/z3/clarity/trunk/

Filed under: ,

Comments:

Posted by Lennart Regebro at Wed Apr 20 2005 12:53

Comments here:
http://blogs.nuxeo.com/sections/blogs/lennart_regebro/2005_04_19_python_statement

Posted by Yves Serrano at Wed Apr 20 2005 17:16

I'm working with clearsilver for a python offline tool for generating custom html-templates depending on the command line parameters.
I must say thats it's very nice to work with clearsilver and HDF.
HDF is more readable than XML for example.
You can really nice separate content, logic, and html stuff.
The documentation could be a bit better...


[Main]

Unless otherwise noted, all content licensed by Martijn Faassen
under a Creative Commons License.