Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Middleware for handling mobile devices in compojure applications
Clojure
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/mobile
test/test_compojure
.gitignore
README
project.clj

README

This is a small library for creating middleware to handle mobile browsers in compojure applications.

## Usage

To run the example application:

lein dpes
lein repl src/mobile/example.clj

To apply the middleware to your own application:

First define the function that will transform your response, if a mobile device is detected
(defn myfunc ...)

Then apply the middleware:

(wrap! name_of_your_app
       ((handle-mobile myfunc)))

That's it!

## Installation

Get leiningen
Download this repo
Run 'lein deps'
Something went wrong with that request. Please try again.