Patrick Casey wrote:
If I recall though @Script really wants to rewrite your javascript for you on the fly and has some weird requirements (like you have to block your whole script inside a big-old CDATA area). I looked at it and couldn't find a way to make it just put out a script *exactly* as I have it in the file system (I have lots of javascript on file I've been using for years).
I eventually had to use the any component to make it work e.g.
<component id="aScript" type="Any"> <static-binding name="element" value="script"/> <binding name="src" expression="assets.some_script_js"/> </component>
<script jwcid="aScript" language="JavaScript" type="text/javascript"/>
You can always create a myscript.script file having: <script> <include-script resource-path="/myscript.js"/> </script> and then in your template
<script jwcid="@Script" script="myscript.script"/>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
