Skip to content

Wraps requests such that ClojureScript is conditionally (re)compiled before being served.

Notifications You must be signed in to change notification settings

cljugb/ring.middleware.clojurescript

 
 

Repository files navigation

ring.middleware.clojurescript

BETA

Wraps requests such that ClojureScript is conditionally (re)compiled before being served.

Usage

If you have ClojureScript source code in cljs/src/ and your HTML is including cljs/bootstrap.js

(use 'ring.middleware.clojurescript)
(defn app [req] ...)
(def cljsc-app (wrap-clojurescript app "cljs"))

License

Copyright (C) 2011 Jim Blomo

Distributed under the Eclipse Public License, the same as Clojure.

About

Wraps requests such that ClojureScript is conditionally (re)compiled before being served.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Clojure 86.0%
  • JavaScript 14.0%