Liking cljdoc? Tell your friends :D

strojure.jmustache.core


clojure-collectorclj

(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]].
sourceraw docstring

compile-sourceclj

(compile-source compiler source)

Returns compiled template from String or Reader source.

Returns compiled template from String or Reader source.
sourceraw docstring

execute-sourceclj

(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.
sourceraw docstring

execute-source-fnclj

(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.
sourceraw docstring

execute-templateclj

(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.
sourceraw docstring

execute-template-fnclj

(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.
sourceraw docstring

keyword-map-fetcherclj

(keyword-map-fetcher)

Returns variable fetcher which gets map value by keyword.

Returns variable fetcher which gets map value by keyword.
sourceraw docstring

lambdaclj

(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.
sourceraw docstring

mixed-map-fetcherclj

(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.
sourceraw docstring

mustache-compilerclj

(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.
sourceraw docstring

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

× close