Crate is a ClojureScript implementation of the awesome Hiccup html templating library.
Dommy is a ClojureScript DOM manipulation, templating and event library.
dommy-crate is a port of crates various element helpers for use with hiccup
dommy-crate is for use with dommy, but does not depend on crate
(ns myapp
(:require [crate.form :as form])
(:use-macros [dommy.macros :only [deftemplate]]))
(deftemplate item [r]
[:div.view
(form/check-box {:class "toggle"} "item" true)
(form/label "item" "Awesome label")
[:button.delete]])
=> <div class="view">
<input name="item" type="checkbox" id="item" class="toggle" value="true">
<label for="item">Awesome label</label>
<button class="delete"></button>
</div>
Copyright (C) 2011 Chris Granger
Distributed under the Eclipse Public License, the same as Clojure.
Copyright (C) 2013 Henry Clifford
Distributed under the Eclipse Public License, the same as Clojure.