Liking cljdoc? Tell your friends :D

compiler.template


create-viewclj

(create-view)
(create-view template)

Return new view template - useful as mentioned here: http://hardlikesoftware.com/weblog/2006/12/12/using-json-with-stringtemplate/

Return new view template - useful as mentioned here:
http://hardlikesoftware.com/weblog/2006/12/12/using-json-with-stringtemplate/
sourceraw docstring

each-kv-to-svclj

(each-kv-to-sv each)

If element is a collection type, do deep transformation

If element is a collection type, do deep transformation
sourceraw docstring

fill-view!clj

(fill-view! template kv-map)
(fill-view! template k v)

Fill view template with key/value pairs

Fill view template with key/value pairs
sourceraw docstring

get-view-from-classpathclj

(get-view-from-classpath view-name)

Return the view template from classpath

Return the view template from classpath
sourceraw docstring

get-view-from-dirclj

(get-view-from-dir view-name root-dir)

Return the view template from specified directory

Return the view template from specified directory
sourceraw docstring

indexedclj

(indexed s)

Returns a lazy sequence of [index, item] pairs, where items come from 's' and indexes count up from zero.

(indexed '(a b c d)) => ([0 a] [1 b] [2 c] [3 d])

Returns a lazy sequence of [index, item] pairs, where items come
from 's' and indexes count up from zero.

(indexed '(a b c d))  =>  ([0 a] [1 b] [2 c] [3 d])
sourceraw docstring

kv-to-svclj

(kv-to-sv mp)

Transforms keyword-value map {:a 10 :b 20 :c 30} to string-value map {"a" 10 "b" 20 "c" 30}

Transforms keyword-value map {:a 10 :b 20 :c 30}
to string-value map {"a" 10 "b" 20 "c" 30}
sourceraw docstring

render-templatecljmacro

(render-template template & vars)
source

render-viewclj

(render-view template)

Return rendered view for the template

Return rendered view for the template
sourceraw docstring

reset-view!clj

(reset-view! view template)

Reset view template with supplied content

Reset view template with supplied content
sourceraw docstring

scan-kv-to-svclj

(scan-kv-to-sv coll)

Scans a collection and turns any contained map within from kv to sv

Scans a collection and turns any contained map within from kv to sv
sourceraw docstring

stringifyclj

(stringify any)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close