1

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?

Abimaran Kugathasan
  • 31,165
  • 11
  • 75
  • 105

1 Answers1

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