On Wednesday 28 September 2005 05:11 pm, Josh Rosenbaum wrote:
> Corey Saltiel wrote:
> > In a perl script/controller:
> > <snip>
> > $tt_vars->{'shnarf'} = 'HELLO';
> > $tt_vars->{'params'} = 'foo=bar&blah=[%shnarf%]';
> > $tt_vars->{'controller'} = 'snafu.pl';
> >
> > Then in a tt:
> > <a href="[%controller%]?[%params%]">
> >
> > Hoping to get:
> > http://snafu.pl?foo=bar&blah=HELLO
> >
> I think you may just need to tell TT to process the params variable for any
> TT stuff it may have in it, since I don't think it does that by default.
>
> Try this:
>
> <a href="[% controller %]?[% params | eval %]">
>
> with your original:
> $tt_vars->{'params'} = 'foo=bar&blah=[% shnarf %]';
>
Aha!
That eval did the trick - thanks a ton!
Cheers,
Corey
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates