Hi
I’m a bit confused there seems to be no information on how to link to javascript templates.
First I though just using the same syntax like linking to css files
< script type="text/javascript" href="{javascript='javascript/app'}"></ script>Then I tried this:
< script src="{path="javascript/app"}" type="text/javascript"></ script>Doesn’t work.
Then I tried this:
< script src="{path="{site_url}/system/expressionengine/templates/default_site/javascript/foundation.js"}" type="text/javascript"></ script>But that doesn’t work either.
I can’t manage to find anything on google or the forum search or the Wiki.
Does everybody place their JS files outside EE?
Thanks for any help
(Edit)
Oh man. Now it works with
< script src="{path="javascript/app"}" type="text/javascript"></ script>I don’t know why it works now. But it does. Of course just after I wrote this thread. Murphis law I guess.