I've set up my ring/jetty based application to dynamically compile any updated clojurescript source files, similar to the clojurescript devenv package recently announced. I'm having some trouble getting the paths correct though. My toplevel directory looks like this:
mysoft srv src srv core.clj (implements namespace srv.core) client hello.cljs www index.html What I'm trying to do is gettng the server, implemented in core.clj to dynamically compile any updates to any cljs files in the "client" directory, and output compiled sources to the www directory. I've almost gotten it working; After compiling, the www directory gets populated with "hello.js" and an out directory with the proper subfolders. What is not correct, however, is the url's in the generated files. When compiling, I use the following code: (cljsc/build "../client" {:output-dir "../www/out" :output-to "../www/hello.js"}))) As I've mentioned, the correct files and directories seem to get put into the www directory correctly. What is not correct however is the content of the file hello.js: goog.addDependency("../../../srv/../www/out/cljs/core.js", ['cljs.core'], ['goog.string', 'goog.string.StringBuffer', 'goog.object', 'goog.array']); goog.addDependency("../../../srv/../www/out/hello.js", ['hello'], ['cljs.core']); It seems my local file paths pollutes the url paths incorrectly. In case it wasn't clear, the "www" is the root of the embedded webserver in my application. Am I doing something wrong, or should there really be some kind of "uriBase" parameter also sent to the build function to avoid the local filepaths polluting the url tree? Thanks, Marius K. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en