Fwd: [webpy] Re: what templating engine do you use

[email protected]
Newsgroups gmane.comp.python.cheetah,gmane.comp.python.webpy
Message-ID <[email protected]>
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.

Can some one please share a way to pre-compile cheetah site
wide base templates in webpy
Precompiling templates when the app loads causes the app to crash
http://pastie.org/488890

This behavior causes webpy apps to take a long time to load and causing time
out errors
thanks


---------- Forwarded message ----------
From: <[email protected]>
Date: Mon, May 25, 2009 at 1:17 AM
Subject: Re: [webpy] Re: what templating engine do you use
To: [email protected]
Cc: Jeremy <[email protected]>,
[email protected]


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 <[email protected]> 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 <[email protected]> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/webpy?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>


-- 
Bidegg worlds best auction site
http://bidegg.com



-- 
Bidegg worlds best auction site
http://bidegg.com

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com

_______________________________________________
Cheetahtemplate-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.