(check-file file)
(check-file file opts)
Takes a file name that contains a Mustache template, and performs syntax check. Throws if there is a syntax error, otherwise returns nil.
Optionally takes an option map. See the docstring of check-string
for
the available options.
Takes a file name that contains a Mustache template, and performs syntax check. Throws if there is a syntax error, otherwise returns nil. Optionally takes an option map. See the docstring of `check-string` for the available options.
(check-resource res)
(check-resource res opts)
Takes a resource name that contains a Mustache template, and performs syntax check.
Optionally takes an option map. See the docstring of check-string
for
the available options.
Takes a resource name that contains a Mustache template, and performs syntax check. Optionally takes an option map. See the docstring of `check-string` for the available options.
(check-string s)
(check-string s opts)
Parses the given template string and throws if it contains a syntax error. Otherwise return nil.
Optionally takes an option map. The option map may have the following keys:
Parses the given template string and throws if it contains a syntax error. Otherwise return nil. Optionally takes an option map. The option map may have the following keys: - :suppress-verbose-errors If set to true, suppress verbose error messages. Defaults to false.
(parse-file file)
(parse-file file opts)
Takes a file name that contains a Mustache template, and parses the template.
Optionally takes an option map. See the docstring of parse-string
for
the available options.
Takes a file name that contains a Mustache template, and parses the template. Optionally takes an option map. See the docstring of `parse-string` for the available options.
(parse-resource res)
(parse-resource res opts)
Takes a resource name that contains a Mustache template, and parses the template.
Optionally takes an option map. See the docstring of parse-string
for
the available options.
Takes a resource name that contains a Mustache template, and parses the template. Optionally takes an option map. See the docstring of `parse-string` for the available options.
(parse-string s)
(parse-string s opts)
Parses the given template string and returns the parsed template.
Optionally takes an option map. The option map may have the following keys:
Parses the given template string and returns the parsed template. Optionally takes an option map. The option map may have the following keys: - :suppress-verbose-errors If set to true, suppress verbose error messages. Defaults to false.
(perr)
(perr err)
Prints detailed error message. The argument err
must be a parse-time exception
thrown in render or parse functions. Otherwise, nothing will be displayed.
Prints detailed error message. The argument `err` must be a parse-time exception thrown in render or parse functions. Otherwise, nothing will be displayed.
(render template data)
(render template data opts)
Takes a parsed template (generated from parse-* functions) and a context map, and renders the template.
Optionally takes an option map. The option map may have the following keys:
Takes a parsed template (generated from parse-* functions) and a context map, and renders the template. Optionally takes an option map. The option map may have the following keys: - :output Specify where to output the rendering result. Defaults to pogonos.output/to-string (i.e. generating a string). - :partials Specify where to look for partials. Either a map or a partials resolver (see pogonos.partials) can be specified. Defaults to pogonos.partials/resource-partials.
(render-file file data)
(render-file file data opts)
Takes a file name that contains a Mustache template, and renders the template.
Optionally takes an option map. See the docstring of parse-string
and render
for the available options.
Takes a file name that contains a Mustache template, and renders the template. Optionally takes an option map. See the docstring of `parse-string` and `render` for the available options.
(render-resource res data)
(render-resource res data opts)
Takes a resource name that contains a Mustache template, and renders the template.
Optionally takes an option map. See the docstring of parse-string
and render
for the available options.
Takes a resource name that contains a Mustache template, and renders the template. Optionally takes an option map. See the docstring of `parse-string` and `render` for the available options.
(render-string s data)
(render-string s data opts)
Takes a Mustache template string and a context map, and renders the template.
Optionally takes an option map. See the docstring of parse-string
and render
for the available options.
Takes a Mustache template string and a context map, and renders the template. Optionally takes an option map. See the docstring of `parse-string` and `render` for the available options.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close