On 6/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I just would like to know if it was possible to do something like that :
> [% WRAPPER splash/button + splash/text style = splash.style.select
> link = 'annot.cgi?view=gene&acc= [% term.acc %]' -%]
> I know this does not work, but I would like to put within the link something
> dynamic as term.acc is.
Check out the Template::Manual::Variables perldocs, specifically the
section on 'Variable Interpolation'.
You need to use double quotes instead of single quotes, and then use $
to denote your variable. Something like this should work:
[% WRAPPER splash/button + splash/text
style = splash.style.select
link = "annot.cgi?view=gene&acc=${term.acc}" -%]
Cheers,
Cees
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates