On 20/12/2007, Emily Heureux <[EMAIL PROTECTED]> 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

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to