Simplate

Chad Whitacre <[email protected]> Thu, 10 Jun 2004 13:44:39 -0400
Newsgroups gmane.comp.web.zope.plone.design,gmane.comp.web.zope.plone.devel
Message-ID <[email protected]>
Hey all,

I've added a new product to the Collective called Simplate (as in 
'Simple Template'). Excerpt from the README below.


chad


----------------

This is a very simple wrapper around the stock Zope File product that 
allows you to do python string formatting on your file body. Our 
immediate use case is dynamic CSS files: no more DTML CSS files in 
Plone! Yay!

Here's how it works:

   - There is an additional property called 'values' which is a list of
     paths to objects that return dictionaries.

   - Those paths are restrictedTraversed and a dictionary is built from
     the dictionaries they return.

   - The paths are prioritized top to bottom, so that items returned by
     calling the first path override items with the same key returned by
     subsequent paths.

   - The only special character is '%(', which can be escaped thus:
     '%%('.




-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504