I need to process a block but only if it has been defined, to avoid the 'not found' error.

So, I might define a block like:

[% BLOCK head %]
        Some block Text.
[% END %]


Then later I want to say something like:


[% PROCESS head IF head %]

But this IF never seems to be true, even when the block has been defined.

Can someone suggest the right syntax for this?

Thanks,
Stuart Johnston


_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to