[Catalyst] javascript in Catalyst using Template Toolkit

Peter Karman peter at peknet.com
Sat Jul 19 01:57:10 BST 2008



kakimoto at tpg.com.au wrote on 7/18/08 6:08 PM:
> 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>
> 

[% Catalyst.uri_for('/lib/site/multifile.js') %]

assuming that you really have 'Catalyst' as your app variable, and not 'c'.
If you are using Catalyst::View::TT, it is 'c' by default.


--
Peter Karman  .  http://peknet.com/  .  peter at peknet.com



More information about the Catalyst mailing list