I am following this guide's structure.
I have added a script.js file (currently placed in the templates directory). This script.js is referenced from one of my html files, however when i start my application the script.js is not being found successfully.
From what i'm seeing i think you need to @Grab it somehow? Not sure.
How can i make it that my script.js file is discoverable?
Edit:
Here is a quicker view of my structure
- src
- My.java
- templates
- greeting.html
- script.js
- app.groovy
greeting.html contains <script src="script.js" /> however it is not being loaded