selmer.parser
<
Resolves the variables from your template string from the local-env, or the namespace and puts them into your template...
macro([s])
A
- function
- function
([template buf rdr])
tag name, fn handler, and maybe tags
macro([k handler & tags])
- function
([content tag buf rdr])
C
- function
([])
- function
([])
- value
- function
([])
E
Turns the argument into a list if it isn't a list already.
function([list-maybe])
Puts &env into a map.
macro([])
- function
([{:keys [tag-name args]} rdr])
F
Compile-time parser of var tag filters.
function([{:keys [tag-value]}])
K
- function
([input & [opts]])
- function
([input & [opts]])
P
- function
([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}]])
- function
([input])
- function
([file params])
- function
([input & [{:keys [custom-tags custom-filters]}]])
- function
([input params])
- function
([{:keys [tag-type], :as tag} rdr])
R
- function
([k])
render takes the string, the context-map and possibly also opts.
function([s context-map & [opts]])
Parses files if there isn't a memoized post-parse vector ready to go, renders post-parse vector with passed context-m...
function([filename-or-url context-map & [{:keys [cache custom-resource-path url-stream-handler], :or {cache (clojure.core/deref cache?), custom-resource-path *custom-resource-path*, url-stream-handler *url-stream-handler*}, :as opts}]])
vector of ^selmer.node.INodes and a context map.
function([template context-map])
Resolves an arg as passed to an add-tag! handler using the provided context-map. A custom tag handler will receive ...
function([arg context-map])
- function
([ns env kw])
S
- function
([& tags])
set custom location, where templates are being searched for. path may be a java.net.URL instance or a string. If it's ...
function([path])
- function
([rdr])
T
Parses the content of a tag. Returns a map of tag-name -> args & content, which can then be interpreted by the callin...
function([rdr start-tag & end-tags])
- value
U
- function
([tag-map tag tags])
Assocs in the passed tag to the tags map.
function([tag tags content args buf])