Subject: | url filter not implemented |
Currently there is only a 'uri' filter implemented in Jemplate. This
filter actually appears to be implementing the TT 'url' filter.
According to the Mozilla[1] documentation 'encodeURI' ignores these
characters:
; , / ? : @ & = + $
The TT 'uri' filter is not supposed to ignore these characters, however,
the 'url' filter is[2].
I have added a patch to duplicate the 'uri' behavior in 'url'. I have
also begun a patch to correctly implement the 'uri' filter in Jemplate.
1:
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Functions:encodeURI
2: http://template-toolkit.org/docs/manual/Filters.html#section_url
Subject: | jemplate-url.patch |
diff -r Jemplate-0.22/lib/Jemplate/Runtime.pm Jemplate-0.22-url/lib/Jemplate/Runtime.pm
261a262,265
> proto.filters.url = function(text) {
> return encodeURI(text);
> }
>