Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.6 KB

README.md

File metadata and controls

45 lines (29 loc) · 1.6 KB

modu

Modu, like modular or system for Clojure, provides a set of readymade components for Clojurescript.

Modu uses our cljx fork of Stuart Sierra's component found here

Modules include:

Usage

Refer to the README.md file inside each module for individual usage.

To use component on the client side, we need to use set! instead of alter-var-root!

(ns foo.core
  (:require [com.stuartsierra.component :as component]
            [modu.sente :refer [new-sente-client]]))

(def ^:dynamic system
  (component/system-map
    {:sente (new-sente-client :path "/chsk" :options {:type :auto})}))

(set! system (component/start system))

Contributing

Pull requests welcome for any Clojurescript library we don't currently have!

License

Copyright © 2014

Distributed under the Eclipse Public License version 1.0