Re: [Templates] IF a ELSE b END always produces b
[prev]
[thread]
[next]
[Date index for 2004/07/16]
>>>>> "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
 |
 |
Re: [Templates] IF a ELSE b END always produces b
merlyn (Randal L. Schwartz) 01:29 on 16 Jul 2004
|