[Templates] Re: The uri filter and fragments (Bill Moseley)
Evan Carroll
evan@dealermade.com
Sat, 18 Nov 2006 11:14:47 -0600
Bill,
It doesn't matter in the slightest, $c->uri_for() returns an object of
URI::http; which does the escaping when the object is created for you.
Remember catalyst doesn't assume you are using TT, and to use TT's
filters would just incur extra overhead.
Input:
[% USE Dumper %]
[% Dumper.dump( c.uri_for('<script>foo bar.html') ) %]
Output:
$VAR1 = bless( do{\(my $o = 'http://localhost/%3Cscript%3Efoo%
20bar.html')}, 'URI::http' );
Evan Carroll
www.evancarroll.com