(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/
(each-kv-to-sv each)
If element is a collection type, do deep transformation
If element is a collection type, do deep transformation
(fill-view! template kv-map)
(fill-view! template k v)
Fill view template with key/value pairs
Fill view template with key/value pairs
(get-view-from-classpath view-name)
Return the view template from classpath
Return the view template from classpath
(get-view-from-dir view-name root-dir)
Return the view template from specified directory
Return the view template from specified directory
(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])
(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}
(render-template template & vars)
(render-view template)
Return rendered view for the template
Return rendered view for the template
(reset-view! view template)
Reset view template with supplied content
Reset view template with supplied content
(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
(stringify any)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close