Navigation Menu

Skip to content

hozumi/crate-bind

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A ClojureScript implementation of Hiccup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%