Re: [Templates] IF a ELSE b END always produces b

[prev] [thread] [next] [Date index for 2004/07/16]

From: merlyn (Randal L. Schwartz)
Subject: Re: [Templates] IF a ELSE b END always produces b
Date: 01:29 on 16 Jul 2004
>>>>> "Garry" == Garry Heaton <garry@xxxxxxx.xxxxxxxxx.xx.xx> writes:

Garry>     <td>[% IF ins %][% ins %][% ELSE %][% PROCESS leftcol %][% END %]</td>

...

Garry> [% BLOCK ins %]Left column content[% END %]

One of these is a variable "ins", and the other is a block/template name
"ins".  They come from separate namespaces.

Maybe what you wanted was:

[% ins = BLOCK %]Left column content[% END %]

        -- 
        Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@xxxxxxxxxx.xxx> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] IF a ELSE b END always produces b
Garry Heaton 00:26 on 16 Jul 2004

Re: [Templates] IF a ELSE b END always produces b
merlyn (Randal L. Schwartz) 01:29 on 16 Jul 2004

Generated at 08:56 on 15 Mar 2005 by mariachi v0.52