I want to implement my own template system to be used with Pystache.
Currently, I have a function *getTemplates()* that is called on every
request I need to get templates, it iterates through a folder on the
operating system and gets all files with the .mustache extension. This
function then returns a dictionary of each of each of the template
contents. What would be the best way to do the following.

1.) Reload all templates for every request ONLY IN DEVELOPMENT MODE (just
like the reload_templates = true setting in the .ini file)
2.) Cache templates when in use on Production (perhaps using Beaker caching
and a function cache decorator?)

Any advice the Pyramid community has would be appreciated. You guys rock!

-Vincent

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to