Hi,

I have a need to create a sticky url generator to be used from a 
template.  Has anybody else needed such a beast?

A quick search on CPAN reveals 'HTML::StickyQuery', which is 
similar to what I want to do.  Except that I would like to use a
mechanism similar to 'Template::Plugin::URL'.

I would like to be able to do this:
[% USE my_url = url('/cgi-bin/myscript.pl') %]
<a href="[%my_url(action="blah")%]>Do Blah</a>

outputs ...
<a href="/cgi-bin/myscript.pl?action=blah;someparam=foo;anotherparam=bar">Do Blah</a>

Where "someparam=foo;anotherparam=bar" were params set in the current 
CGI.pm object (the context that the page was invoked in).  I should 
be able to override the values of params (such as "action"), but 
otherwise the function "my_url" should use values from the context 
that the page was invoked in.

Is this something that could be integrated into 'Template::Plugin::URL'?

regards,
Brian


        


Reply via email to