Liking cljdoc? Tell your friends :D
All platforms.

wet.core


parseclj/s

(parse template)
(parse template options)

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

renderclj/s

(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:

  • :params — a map of arbitrary Clojure data structures as render parameters,
  • :filters — a map of functions of one more arguments.
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.
sourceraw docstring

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

× close