Am Dienstag, 11. Dezember 2012 01:59:57 UTC+1 schrieb Michael Lenaghan:
>
> I'm starting to put together a Pyramid-based app that's meant to run on 
> Google App Engine. I'd like to be able to use Chameleon for templates, but 
> I've seen reports of it being slow in that environment. The problem is that 
> the reports I've come across all seem to be a couple of years old; in the 
> meantime Google has introduced the 2.7 runtime (with some key bytecode 
> modification changes: 
> https://developers.google.com/appengine/docs/python/python25/diff27#Bytecode_Modification),
>  
> and Chameleon itself has continued to evolve.
>
> My question, then, is this: does anyone know if Chameleon is competitive 
> with Jinja2 *on App Engine*?
>

Slightly OT (I did not benchmark it) but to make it work with the local 
developemt app-server running in debug mode I had to do the following tweak:

# disable chameleon debug module loader, gae does not allow tempdirs
import chameleon.template
from chameleon.loader import MemoryLoader
chameleon.template._make_module_loader = MemoryLoader
chameleon.template.BaseTemplate.loader = MemoryLoader()

hth anyway 
Jensens

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pylons-discuss/-/aDxLqwfkKwkJ.
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.

Reply via email to