[Templates] question on dynamically include
Stuart Johnston
saj@thecommune.net
Fri, 27 Apr 2007 15:27:59 -0500
James. L wrote:
> --- Clinton Gormley <clint@traveljury.com> wrote:
>
>> On Fri, 2007-04-27 at 12:13 -0700, James. L wrote:
>>> another question: how to write the following
>>> correctly?
>>> [% "<input type='hidden' name='matched_cols'
>> value='[%
>>> inputs.values.join(',')' %]>" IF inputs %]
>> <input type="hidden" name="matched_cols" value="[%
>> IF inputs; inputs.values.join(',') %]">
>
> yes. that sorta work. except it still generates a
> hidden field regardless of the defines of 'inputs'.
How about:
[% IF inputs %]
<input type="hidden" name="matched_cols" value="[%
inputs.values.join(',') %]">
[% END %]