Liking cljdoc? Tell your friends :D

ferret.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/
raw 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
raw 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
raw docstring

get-view-from-classpathclj

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

Return the view template from classpath

Return the view template from classpath
raw 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
raw 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])
raw 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}
raw docstring

render-templatecljmacro

(render-template template & vars)

render-viewclj

(render-view template)

Return rendered view for the template

Return rendered view for the template
raw docstring

reset-view!clj

(reset-view! view template)

Reset view template with supplied content

Reset view template with supplied content
raw 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
raw docstring

stringifyclj

(stringify any)

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

× close