Liking cljdoc? Tell your friends :D

ripley.template

Implement a client side template.

Implement a client side template.
raw docstring

->template-data-proxyclj

(->template-data-proxy)
(->template-data-proxy format-pattern)

Create a new template data proxy that tracks what fields are accessed.

When a field is accessed, it is given an index and a template reference name for it is returned.

Optionally takes a format pattern on how to generate the name. Defaults to "{{_rl%d}}" where %d is replaced with the index.

Create a new template data proxy that tracks what
fields are accessed.

When a field is accessed, it is given an index and
a template reference name for it is returned.

Optionally takes a format pattern on how to generate
the name. Defaults to "{{_rl%d}}" where %d is replaced
with the index.
sourceraw docstring

template-data-proxy-fieldsclj

(template-data-proxy-fields tdp)

Take all the accessed fields of the template data proxy and return a function that returns all those fields from the given map as a vector.

Take all the accessed fields of the template data proxy
and return a function that returns all those fields from the
given map as a vector.
sourceraw docstring

use-templateclj

(use-template component selector data-source)

Render a template based on the given component. The component will be rendered with a special proxy value that tracks what fields are accessed.

Note that components are severely limited. They may not have live components and can only have simple substitutions without code logic.

Render a template based on the given component.
The component will be rendered with a special proxy value
that tracks what fields are accessed.

Note that components are severely limited.
They may not have live components and can only have simple
substitutions without code logic.
sourceraw docstring

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

× close