On Wednesday, May 25, 2011 8:15:39 PM UTC-4, Brian Will wrote: 
>
> I'd like to use cache.ram with some chunks of content in my templates, 
> and I'd rather not have to translate the chunks into the helper 
> equivalents, e.g. <div> to DIV(). Is there something like 
> {{cacheblock}}stuff{{end}}? Should there be?

 
Maybe you could do something like:
 
{{=cache.ram('cached_view', lambda: 
XML(response.render('cacheable_view.html', response._vars)))}}
 
Or you could do the caching in the controller and just return the string to 
the view.
 
Anthony
 
 

Reply via email to