Hmm.  Maybe I could create a filter similar to Miyagawa-san's 
'Template::Plugin::FillinForm'.

> -----Original Message-----
> From: Parker, Brian 
> Sent: Monday, July 22, 2002 10:15 AM
> To: [EMAIL PROTECTED]
> Subject: [Templates] sticky urls - Tempate::Plugin::URL?
> 
> 
> 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;anotherpa
> ram=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
> 
> 
>       
> 
> _______________________________________________
> templates mailing list
> [EMAIL PROTECTED]
> http://www.template-toolkit.org/mailman/listinfo/templates
> 


Reply via email to