[Catalyst] javascript in Catalyst using Template Toolkit
kakimoto at tpg.com.au
kakimoto at tpg.com.au
Sat Jul 19 00:08:23 BST 2008
hi there,,
Did this work?
I have actually tried this and yes, like Emily,my JS stuff is store
in myapp/root/lib/site .
<script src="[% Catalyst.uri_for('/multifile.js') %]"></script>
Does not work.
Did I miss anything out?
thank you
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