Parameter Middleware
Last updated
URL-Encoded Parameters The [[ring.middleware.params/wrap-params|http://mmcgrana.github.com/ring/middleware.params-api.html#ring.middleware.params/wrap-params]] middleware function adds support for url-encoded ...
Parameters
Last updated
URL-encoded parameters are the primary way browsers pass values to web applications. They are sent when a user submits a form, and are usually used for things like pagination. Because Ring is a low level ...
Sessions
Last updated
Sessions in Ring work a little differently than you might expect, because Ring attempts to be functional when possible. Session data is passed via the request map on the :session key. The following example ...
Standard Library
Last updated
Responses The ring.util.response namespace contains functions for generating responses. This can make your handlers more concise and understandable. In the last section the following example was used: ...
Standard middleware
Last updated
Here is a list of middlewares available in Ring itself: In ring/ring-core : wrap-cookies (ring.middleware.cookies) wrap-file (ring.middleware.file) wrap-file-info (ring.middleware.file-info) wrap-flash ...
Static Resources
Last updated
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 ...
Third Party Libraries
Last updated
Adapters ring-netty-adapter : Netty adapter ring-mongrel2-adapter : Mongrel2 adapter ring-finagle-adapter : Finagle adapter Frameworks Compojure : A concise DSL to generate Ring handler functions Moustache ...
Why Use Ring?
Last updated
Using Ring as the basis for your web application has a number of benefits: Write your application using Clojure functions and maps Run your application in a auto-reloading development server Compile your ...