[Petal] Help ? Trying to pre-cache - Patch Submission

Bruno Postle bruno at mkdoc.com
Fri Feb 24 13:21:48 GMT 2006


On Fri 17-Feb-2006 at 02:49 -0500, Jonathan wrote:

> The patch simply does this:
>	1- add a "cache_only" option to templates (default 0) ( the 
>	internal var is $CACHE_ONLY )
>	2- if cache_only is set, Petal returns true (1) after the 
>	eval block that attempts to interpolate data into the 
>	template ( and a line  before Petal would otherwise have a 
>	fatal error if no data is passed  in )

This looks useful and shouldn't break anything.

Can you send the patch again as an attachment?  The inline version 
is mangled by line-wrapping and I can't get it to apply.

-- 
Bruno


More information about the Petal mailing list