Sorry, should have mentioned that I was hoping to be able to do it without
an eval :)  Just have a lot of fields I would have to change.  That said, I
can go through and make the changes if needs be.

Thanks,
Earl

> -----Original Message-----
> From: darren chamberlain [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 19, 2003 3:57 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [Templates] recursion in templates
> 
> 
> * Cahill, Earl <earl at aboutws.com> [2003/12/19 17:45]:
> > Hi,
> 
> Hello.
> 
> > I really did try to find an answer, but let's say I have something
> > like this
> > 
> > my $form = {
> >   first_name_error          => "[% first_name_required_error %]",
> >   first_name_required_error => "Your first name is required",
> > };
> > 
> > then in my template I have
> > 
> > [% first_name_error %]
> 
> Use the eval filter:
> 
>   [% first_name_error | eval %]
> 
> (darren)
> 
> -- 
> I invented the term "Object-Oriented", and I can tell you, I didn't
> have C++ in mind.
>     -- Alan Kay
> 

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to