I am using pylons with SimpleTAL (ZPT implementation) templating and what I did to wire it in to pylons was just follow the existing patterns established by Mako and Genshi. Basically, in the *lib* package I created a template.py module and a *render_simpletal* function within it which takes a template, the caching options, and any other params particular to the templating engine and return the result of a call to pylon's * cached_template* function. *cached_template* takes the inner function named *render_template* as a parameter and this is the function you need to implement. Basically just use the template's API to render a given template and return it from this inner function.
2009/9/16 Iain Duncan <iaindun...@telus.net> > > Hi folks, I have not built enough pylons to be know how to switch > templating languages beyond mako and genshi, but I'm interested in using > Chameleon. Has anyone got any examples up of what one needs to do to use > Chameleon? > > thanks > Iain > > > > > -- Never take life seriously. Nobody gets out alive anyway. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---