Parsing and handling of compile-time vs. run-time. Avoiding unnecessary work by pre-processing the template structure and content and reacting to the runtime context map with a prepared data structure instead of a raw template. Anything other than a raw tag value injection is a runtime dispatch fn. Compile-time here means the first time we see a template at runtime, not the implementation's compile-time.
Parsing and handling of compile-time vs. run-time. Avoiding unnecessary work by pre-processing the template structure and content and reacting to the runtime context map with a prepared data structure instead of a raw template. Anything other than a raw tag value injection is a runtime dispatch fn. Compile-time here means the first time we see a template *at runtime*, not the implementation's compile-time.
(add-tag! k handler & tags)
tag name, fn handler, and maybe tags
tag name, fn handler, and maybe tags
(parse parse-fn
input
&
[{:keys [tag-open tag-close filter-open filter-close tag-second
short-comment-second]
:or {tag-open *tag-open*
tag-close *tag-close*
filter-open *filter-open*
filter-close *filter-close*
tag-second *tag-second*
short-comment-second *short-comment-second*}
:as params}])
(render-file filename-or-url
context-map
&
[{:keys [cache custom-resource-path]
:or {cache (clojure.core/deref cache?)
custom-resource-path *custom-resource-path*}
:as opts}])
(set-resource-path! path)
set custom location, where templates are being searched for. path may be a java.net.URL instance or a string. If it's a string, we first try to convert it to a java.net.URL instance and if it doesn't work it's interpreted as a path in the local filesystem.
set custom location, where templates are being searched for. path may be a java.net.URL instance or a string. If it's a string, we first try to convert it to a java.net.URL instance and if it doesn't work it's interpreted as a path in the local filesystem.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close