How to run external .js from squiffy?

I am tryin to execute some external javascript from Squiffy (same directory), but the usual Markdown syntax is not working?

<script type='text/javascript' src='MyScript.js'></script>
<script type='text/javascript'>

My question is: How to call and execute external .js from Squiffy? If I paste the above in html.index body, it runs the script perfectly, so I know it's not the script at fault.

I am rather new to progamming, so please forgive me if I am missing something obvious.

Try to indent the JS with 4 spaces on the left

[[section 1]]:
    <script type='text/javascript' src='MyScript.js'></script>
    <script type='text/javascript'> 
Look at [Something].

It's not javascript, it's HTML trying to call javascript from a seperate .js file.

Incidentally, I did try various jQuery methods, also to no avail.

 jQuery.getScript( url .... -etc

Has anyone else run in to this problem?

I found this quiffy command which might help, but it's only for the command line version, apparently:

  @import my_script.js

I tried to run CMD Squiffy, but for some reason I am getting errors when I install it (deprecated minimatch please update....).

Edit: It turns out update problem is easily fixed with this command line:
npm install -g [email protected]

However, @import my_script.js didn't solve my problem.

This topic is now closed. Topics are closed after 60 days of inactivity.