Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Simple File Caching
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Vincent Catalano  
View profile  
 More options Sep 20 2012, 6:26 pm
From: Vincent Catalano <vinc...@vincentcatalano.com>
Date: Thu, 20 Sep 2012 15:25:39 -0700
Local: Thurs, Sep 20 2012 6:25 pm
Subject: Simple File Caching

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Anderson  
View profile  
 More options Sep 20 2012, 7:30 pm
From: John Anderson <son...@gmail.com>
Date: Thu, 20 Sep 2012 19:30:05 -0400
Local: Thurs, Sep 20 2012 7:30 pm
Subject: Re: Simple File Caching
https://github.com/sontek/pyramid_mustache  allows you to use pystache
with pyramid if you want.

On Thu, Sep 20, 2012 at 7:25 PM, Vincent Catalano


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vincent Catalano  
View profile  
 More options Sep 24 2012, 12:58 pm
From: Vincent Catalano <vcatal...@gmail.com>
Date: Mon, 24 Sep 2012 09:57:43 -0700
Local: Mon, Sep 24 2012 12:57 pm
Subject: Re: Simple File Caching

Do you have any examples for how to use this?
On Sep 20, 2012 4:30 PM, "John Anderson" <son...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »