Composure, Hiccup, and javascript


#1

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 "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js") (h/include-js "js/toolkit.js")

Produces

<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:


#2

Doh!

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!

:blush: