(expand-macros parsed)Second parse phase: takes the [ast macros] pair produced by parse and
splices every :macro-call node into its expansion. An error map from phase
one is passed through untouched. Returns the final node vector or an error map.
Second parse phase: takes the [ast macros] pair produced by `parse` and splices every :macro-call node into its expansion. An error map from phase one is passed through untouched. Returns the final node vector or an error map.
(parse resource-path
template-resolver
user-filters
user-sanitizers
dictionary
current-sanitizer
json-serializer)(parse-template resource-path
template-resolver
user-filters
user-sanitizers
dictionary
current-sanitizer
json-serializer
fragment)(required-keys ast)The context paths a template reads, as a set of keyword vectors:
{{ user.name }} needs [:user :name]. Takes the nodes parse-template
returns, or a partially rendered template to see what is still missing.
Names the template binds itself - a loop's item and loop, a let
variable - are not context keys, so only the paths they are bound from are
listed. Keys a context-aware filter reads inside its own code (:locale for
the trans filter) are not visible here. An error map is passed through.
The context paths a template reads, as a set of keyword vectors:
`{{ user.name }}` needs `[:user :name]`. Takes the nodes `parse-template`
returns, or a partially rendered template to see what is still missing.
Names the template binds itself - a loop's item and `loop`, a `let`
variable - are not context keys, so only the paths they are bound from are
listed. Keys a context-aware filter reads inside its own code (`:locale` for
the `trans` filter) are not visible here. An error map is passed through.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |