[Templates] Storing output from INCLUDE or PROCESS
Josh Rosenbaum
josh@infogears.com
Tue, 06 Jun 2006 12:32:09 -0600
This would probably work:
[% var = BLOCK %][% PROCESS somefile1 %][% END %]
-- Josh
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 %]
> [% IF var %]
> [% PROCESS somefile0 %]
> [% var %]
> [% ELSE %]
> [% PROCESS somefile2 %]
> [% END %]
>
> Thanks!
>
> -James
>
> _______________________________________________
> templates mailing list
> templates@template-toolkit.org
> http://lists.template-toolkit.org/mailman/listinfo/templates