---------8<----------
The output of a directive can be captured by simply assigning the
directive to a variable.
[% headtext = PROCESS header title="Hello World" %]
---------8<----------
which works fine. However - I need the possibility to totally override
'headtext' from the caller, so I thought
[% DEFAULT headtext = PROCESS header title="Hello World" %]
would do the trick. Unfortunately this croaks with
file error - parse error: frameWork/normal.tt line 2-7: unexpected token
(PROCESS)
I can get around it by using a tempvar, but it seems uneccessary
[%
headtextTMP = PROCESS header title="Hello World";
DEFAULT headtext = headtextTMP
%]
BTW: It also croaks with SET, but that's not really a problem for me ;)
--
Trond Michelsen