(clojure-collector {:keys [map-fetcher]
:or {map-fetcher (keyword-map-fetcher)}})
Returns jmustache's collector which works with clojure data structures.
The :map-fetcher
option defines map-fetcher for getting values from clojure
maps, default is keyword-map-fetcher
.
Returns jmustache's collector which works with clojure data structures. The `:map-fetcher` option defines map-fetcher for getting values from clojure maps, default is [[keyword-map-fetcher]].
(compile-source compiler source)
Returns compiled template from String or Reader source.
Returns compiled template from String or Reader source.
(execute-source compiler source context)
(execute-source compiler source context out)
Executes mustache template from the String or Reader source with context and optional writer.
Executes mustache template from the String or Reader source with context and optional writer.
(execute-source-fn compiler source)
Returns function to execute mustache template from the String or Reader source with context and optional writer.
Returns function to execute mustache template from the String or Reader source with context and optional writer.
(execute-template template context)
(execute-template template context out)
Executes mustache template with context and optional writer.
Executes mustache template with context and optional writer.
(execute-template-fn template)
Returns function to execute mustache template with context and optional writer.
Returns function to execute mustache template with context and optional writer.
(keyword-map-fetcher)
Returns variable fetcher which gets map value by keyword.
Returns variable fetcher which gets map value by keyword.
(lambda f)
(lambda f compiler)
Converts clojure function to mustache lambda. If compiler
provided then
result of function application is rendered as mustache template with the
current context.
Converts clojure function to mustache lambda. If `compiler` provided then result of function application is rendered as mustache template with the current context.
(mixed-map-fetcher)
Returns variable fetcher which gets map value by keyword then by string.
Returns variable fetcher which gets map value by keyword then by string.
(mustache-compiler {:keys [map-fetcher throw-missing?]})
Returns instance of jmustache's compiler. The :map-fetcher
option defines
map-fetcher for getting values from clojure maps, default is
keyword-map-fetcher
. The :throw-missing?
option defines if exception
should be thrown for missing values during render of compiled templates.
Returns instance of jmustache's compiler. The `:map-fetcher` option defines map-fetcher for getting values from clojure maps, default is [[keyword-map-fetcher]]. The `:throw-missing?` option defines if exception should be thrown for missing values during render of compiled templates.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close