Liking cljdoc? Tell your friends :D

jj.majavat.parser


create-filter-mapclj

(create-filter-map dictionary json-serializer)
source

expand-macrosclj

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

parseclj

(parse resource-path
       template-resolver
       user-filters
       user-sanitizers
       dictionary
       current-sanitizer
       json-serializer)
source

parse-templateclj

(parse-template resource-path
                template-resolver
                user-filters
                user-sanitizers
                dictionary
                current-sanitizer
                json-serializer
                fragment)
source

required-keysclj

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

resolve-pathclj

(resolve-path context path)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close