I've patched Template.pm version 2.6 so that it can now
the option ESCAPE=JS into a TMPL_VAR.
ESCAPE=HMTL and ESCAPE=URI are already supported,
by a perl script. I feel that the ESCAPE=JS option is the
only feature lacking from HTML::Template. With this
option, HTML::Template is capable of escaping the 3
most common string formats in web applications: URLs,
For those interested in how this works you can test this
I hope this feature wil be included in the next release.
An example cgi script with template is included in the