[Templates] Storing output from INCLUDE or PROCESS

Andy Wardley abw@wardley.org
Tue, 06 Jun 2006 20:11:06 +0100


James Lance wrote:
> I am wondering if there is a way to store the output from INCLUDE or PROCESS 
> into a variable.  
> 
> I'd like to do something like this:
> 
> [% var = PROCESS somefile1 %]

That'll do it.

You can assign the output of any (well, most) directive straight to a 
variable.

A