Crate is a ClojureScript implementation of the awesome Hiccup html templating library.
Crate-bind is modified version of Crate. With crate-bind you can easily bind elements into a hashmap.
(ns myapp
(:require [crate-bind.core :as crateb]))
(crateb/build [:div])
=> {:el #<[object HTMLDivElement]>}
(crateb/build [:div
[:span :date-el "2012/9/19"]
[:a {:href "/foo"} :link-el "hello"]])
=> {:el #<[object HTMLDivElement]>,
:link-el #<http://localhost:8080/foo>,
:date-el #<[object HTMLSpanElement]>}
project.clj
[crate-bind "0.1.0"]
Copyright (C) 2011 Chris Granger
Distributed under the Eclipse Public License, the same as Clojure.