Liking cljdoc? Tell your friends :D

compiler.template


create-view

(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-sv

(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!

(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-classpath

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

Return the view template from classpath

Return the view template from classpath
sourceraw docstring

get-view-from-dir

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

Return the view template from specified directory

Return the view template from specified directory
sourceraw docstring

indexed

(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-sv

(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-templatemacro

(render-template template & vars)
source

render-view

(render-view template)

Return rendered view for the template

Return rendered view for the template
sourceraw docstring

reset-view!

(reset-view! view template)

Reset view template with supplied content

Reset view template with supplied content
sourceraw docstring

scan-kv-to-sv

(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

stringify

(stringify any)
source

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

× close