in reply to Re: Re: Template Toolkit and booleans
in thread Template Toolkit and booleans

[%- line.$priv - %]

See the section on variable interpolation in the TT manual.

Replies are listed 'Best First'.
Re (4): Template Toolkit and booleans
by talexb (Chancellor) on Feb 11, 2003 at 17:28 UTC
    <table width="100%"><tr> [% FOREACH priv = [ "upload", "inspect", "download", "admin" ] %] [% field = "priv_$priv" %] <td align="center">[% priv %] = "[%- line.$field -%]" </td> [% END %] </tr></table>

    And now I can simplify it to this .. Thanks!

    --t. alex
    Life is short: get busy!