In my application with moustache (a micro framework to to wire Ring handlers and middlewares), enlive (as html template engine), and clojure, I can't view the images in my html file. How to render these file to html?
Asked
Active
Viewed 393 times
1 Answers
3
If you have your files locally, make sure Ring has a route that maps to your images.
This the doc for the needed method: API for middleware.file
And then make sure you have something like this in your routes:
(def routes
(app
(wrap-file "resources")
..))

Nicolas Modrzyk
- 13,961
- 2
- 36
- 40
-
Will you please give me the full method? my static file are in the wap directory within the project src directory! – Abimaran Kugathasan Jul 22 '11 at 09:05
-
what are the routes of your application ? and where are your files located ? – Nicolas Modrzyk Jul 23 '11 at 00:54