James. L wrote:
--- Clinton Gormley <[EMAIL PROTECTED]> 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 %]
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates