[Templates] url string w/ template toolkit

Perrin Harkins perrin@elem.com
30 Sep 2003 19:04:49 -0400


use CGI;
my $q = CGI->new();
my $uri = $q->self_url();

$template->process($filename, { uri => $uri });

[% uri %]?somevar=[% totalcost %]

If you're using Apache::Template, perldoc Template::Plugin::CGI.

- Perrin