Skip to content

Ejhfast/mobile-for-compojure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

Middleware for handling mobile devices in compojure applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published