On 10/22/2009 07:31 PM, Felipe Gasper (cPanel) wrote:
> Hi all,
>
>       What is the syntax I am looking for here?
>
> -----
> FOR key = hash.keys;
>       "The value for $key is ${hash.$key}.";
> END;
> -----
>
>       The above syntax produces errors....I assume there is a way to do what
> I want to do?

[% FOR key = hash.keys -%]
        "The value for [% $key %] is [% hash.$key %].";
[% END -%]

Cheers,

Dave...

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to