Hello,

I'd like to be able to pass a new parameter from one template to another.
For example, imagine I have script.cgi which displays an HTML::Template
template.tmpl. Inside template.tmpl I <TMPL_INCLUDE> header.tmpl. I want
to pass a parameter from template.tmpl to header.tmpl, a parameter not
originally passed from script.cgi.

For an example of why this is useful, imagine that header.tmpl has a smart
menu bar with buttons for each portion of the website, where the portion
the user is currently viewing is highlighted. We don't want script.cgi to
pass in what portion of the website is being viewed because if the
designers are in charge of the menu structure so this could change.

Does such functionality exist in HTML::Template? It doesn't look like it.
I could imagine a command like <TMPL_PARAM NAME="foo" VALUE="bar"> or even
just extending <TMPL_VAR> so if you provide a VALUE attribute the variable
is set rather than read.

Thanks in advance!

Humbly,

Andrew

----------------------------------------------------------------------
Andrew Ho               http://www.tellme.com/       [EMAIL PROTECTED]
Engineer                   [EMAIL PROTECTED]          Voice 650-930-9062
Tellme Networks, Inc.       1-800-555-TELL            Fax 650-930-9101
----------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to