Liking cljdoc? Tell your friends :D

pogonos.core


check-fileclj

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

check-inputclj/s

(check-input in)
(check-input in opts)
source

check-resourceclj

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

check-stringclj/s

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

  • :suppress-verbose-errors If set to true, suppress verbose error messages. Defaults to false.
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.
sourceraw docstring

parse-fileclj

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

parse-inputclj/s

(parse-input in)
(parse-input in opts)
source

parse-resourceclj

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

parse-stringclj/s

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

  • :suppress-verbose-errors If set to true, suppress verbose error messages. Defaults to false.
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.
sourceraw docstring

perrclj/s

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

renderclj/s

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

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

render-fileclj

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

render-inputclj/s

(render-input in data)
(render-input in data opts)
source

render-resourceclj

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

render-stringclj/s

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

set-default-options!clj/s

(set-default-options! options)
source

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

× close