Re: [Cheetahtemplate-discuss] [webpy] Re: what templating engine do you use
Brought to you by:
rtyler,
tavis_rudd
From: <mob...@gm...> - 2009-05-25 08:17:41
|
Hey Jeremy James can you share this setup for webpy #extends, import in webpy please I use Cheetah with pre-compiled templates - it's very fast *(the templates import especially quickly when python compiled and optimised). A bit of magic with the imp module takes a template name and a base directory (configured in a site-specific config) and loads up that template, taking care of #extends and #import directives as appropriate.* Thanks a lot On Tue, Mar 20, 2007 at 5:28 PM, Jeremy <jer...@gm...> wrote: > > For a production site, I use Cheetah with pre-compiled templates - > it's very fast (the templates import especially quickly when python > compiled and optimised). A bit of magic with the imp module takes a > template name and a base directory (configured in a site-specific > config) and loads up that template, taking care of #extends and > #import directives as appropriate. I don't use the built-in support > for Cheetah, however. The new template library is also only imported > to display the debugerror page. > > On Mar 20, 1:00 am, Jack <jli...@gmail.com> wrote: > > I also read in a review article that web.py only supports cheetah 1.0. > > Is that still the case? > > I'd be surprised by this (although not sure because we use debian > stable which is still on version 0.9.16) - after all, Cheetah simply > takes a template, fills it, and returns a string (possibly unicode). > Perhaps only the built-in cheetah module isn't compatible? > > -jeremy > > > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google Groups > "web.py" group. > To post to this group, send email to we...@go... > To unsubscribe from this group, send email to > web...@go... > For more options, visit this group at > http://groups.google.com/group/webpy?hl=en > -~----------~----~----~----~------~----~------~--~--- > > -- Bidegg worlds best auction site http://bidegg.com |