A ClojureScript implementation of Hiccup
Clojure
Pull request Compare This branch is 9 commits ahead, 40 commits behind ibdknox:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/crate_bind
test/crate
.gitignore
README.md
project.clj

README.md

crate-bind

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.

Usage

(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]>}

Installation

project.clj

[crate-bind "0.1.0"]

License

Copyright (C) 2011 Chris Granger

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