[Templates] [% META pre_result = BLOCK %]
Andy Wardley
abw@cre.canon.co.uk
Thu, 17 Aug 2000 15:16:19 +0100
>In fact, I can't even say
> [% my_pre_result = BLOCK %] ... [% END %]
> [% META pre_result = my_pre_result %]
META tags are evaluated at 'compile time' and they can only be
simple strings or numerical values.
Restrictive, yes, but there's no easy way around it at the moment.
>All my templates has the same PRE_PROCESS header, except one, that need to
>insert more things. It looks like I have to forget about PRE_PROCESS and
>META and use WRAPPER instead. :-(
I would set a META tag like this:
[% META section = 'section1' %]
and in the PRE_PROCESS header file, do this:
[% PROCESS "$template.section/config" IF template.section %]
HTH
A
--
Andy Wardley <abw@kfs.org> Signature regenerating. Please remain seated.
<abw@cre.canon.co.uk> For a good time: http://www.kfs.org/~abw/