Stuart Clarke schrieb:
> See:
>
> http://trac.turbogears.org/turbogears/wiki/TurboCheetahTemplates
I recently came up with a small improvement to the custom filter in the base
temmplate SiteBase.py, which allows to use ElementTree nodes directly in
Cheetah placeholders. This also circumvents the Cheetah auto-call bug and make
the ugly ${getvar('js', autoCall=False).render()} constructs in SiteTemplate.py
unnecessary.
I zipped up a small quick-started demonstration app, you can download it here:
http://chrisarndt.de/en/software/python/download/Cheetah-Templates-1.1.tar.bz2
I also wrote a small script that watches a directory periodically and compiles
all changed templates:
http://chrisarndt.de/en/software/python/download/cheetah-autocompile.py
In you TG project directory run:
cheetah-autocompile.py <myproject>/templates
I use this during template development, because TurboGears does not notice
changes to SiteTemplate.py and I got tired of compiling it manually.
Chris
P.S. Someone (me?) should migrate the above mentioned page to the new
documentation wiki...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---