[Templates] Process vs Macro ?

Paul Seamons mail@seamons.com
Fri, 22 Sep 2006 14:56:52 -0600


> Also, a BLOCK produces output.  A MACRO returns a value.  So you can also
> do this:
>
> [% 'something' IF thing2() == 'whatever' %]
>
> which wouldn't work with a BLOCK.

Well, you can, but not directly.

[% temp = PROCESS myfuncs.tt2/thing1 %][% IF temp == 'whatever' %]

Paul