[Catalyst] javascript in Catalyst using Template Toolkit
Carl Franks
fireartist at gmail.com
Thu Dec 20 18:55:07 GMT 2007
On 20/12/2007, Emily Heureux <emily at burnham.org> wrote:
>
> I am trying to execute a bit of external javascript code, but I don't
> believe I am setting it up correctly in Catalyst. I have a clock.js file,
> and then inside a menu file in myapp/root/lib/site I have the script tag:
> <script src="clock.js">…</script>.
src="[% c.uri_for('/clock.js') %]"
EVERY link in your template files should use uri_for() to build the URL.
Cheers,
Carl
More information about the Catalyst
mailing list