nicholasf: yes, but it’s basically just an email form
This is maybe obvious to someone who has a background in Java... I have a clojure function that accesses a path ("templates/feedback.xlsx") under resources. I need to call it both from a quartzite job, and from a compojure route. However it seems compojure changes the "base" from which the relative path starts.... how can I make it so both calls to the function can access the file?
@shofetim: You can use http://clojure.java.io/resource to access a resource that's on the classpath:
(-> "templates/feedback.xslx" io/resource io/file)
(io/resource "resources/templates/feedback.xslx")
(io/resource "templates/feedback.xslx")
both return nil
you don't need the leading "resources" in the first example , but if in your project that file is indeed in <project root>/resources/templates/feedback.xslx
it'll work.