On Thu, Oct 22, 2009 at 11:52 AM, Dave Cross <[email protected]> wrote:
> 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 -%]
>
I think you mean:
"The value for [% key %] is [% hash.$key %].";
--
Bill Moseley
[email protected]
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates