>>>>> "Bill" == Bill Moseley <[EMAIL PROTECTED]> writes:
Bill> The TT docs for the uri filter suggests:
Bill> <a href="[% filename | uri | html %]">click here</a>
Bill> Which I have done for a while out of habit, but doesn't work well for
Bill> fragments:
Bill> $ perl -MTemplate -le 'Template->new->process( \"[% u | uri | html %]", {
u => "my file&stuff.html#offset" } )'
Bill> my%20file&stuff.html%23offset
Correct. But you had a *file* named "my file&stuff.html#offset",
it's doing *precisely* the right thing. Not sure why you thought
you should escape the fragment, but oh well.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates