Composure, Hiccup, and javascript


Good morning,

Having the darnedest time getting javascript files to load under compojure and hiccup. Css loads fine, but the js files located in resources/public/js are getting a 404.

(h/include-js "") (h/include-js "js/toolkit.js")


<script src="js/toolkit.js" type="text/javascript"></script>

and gives a GET 404 error for local (but not remote) javascript. I’ve tried every permutation of directory. I seem to have setup the project the same way as:



I’ve been using IntelliJ to write locally on my Mac and sync/deploy to a faster CentOS server for development and REPL. The two source trees were out of sync!