We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Web applications often need to serve static content, such as images or stylesheets. Ring provides two middleware functions to do this.
One is wrap-file. This serves static content from a directory on the local filesystem:
wrap-file
(use 'ring.middleware.file) (def app (wrap-file your-handler "/var/www/public"))
The other is wrap-resource. This serves static content from the JVM classpath:
wrap-resource
(use 'ring.middleware.resource) (def app (wrap-resource your-handler "public"))