in reply to javascript inside HTML::Template file
The server does not execute the javascript: the client does. Observe the site in action. The javascript is part of the page-content that is delivered to the client: it is executed there, as the page-content may direct..
In Section
Seekers of Perl Wisdom