(parse template)
(parse template options)
Accepts a template string and attempts to parse it, returning an intermediate representation. Possible options are:
Accepts a template string and attempts to parse it, returning an intermediate representation. Possible options are: - :analyse? — when true, a summary of used filters and lookups will be attached to the returned object's metadata. On parse error, an ex-info with :type :wet/parse-error will be thrown.
(render transformed-template)
(render transformed-template options)
Accepts an intermediate representation produced by wet.core/parse and renders it, possibly with the use of the map of following options:
Accepts an intermediate representation produced by wet.core/parse and renders it, possibly with the use of the map of following options: - :params — a map of arbitrary Clojure data structures as render parameters, - :filters — a map of functions of one more arguments.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close