selmer.parser
(source) Parsing and handling of compile-time vs.
run-time. Avoiding unnecessary work by pre-processing
the template structure and content and reacting to
the runtime context map with a prepared data structure
instead of a raw template. Anything other than a raw tag
value injection is a runtime dispatch fn. Compile-time here
means the first time we see a template *at runtime*, not the
implementation's compile-time.
For more info about this library see:
https://rawgit.com/yogthos/Selmer/master/docs/uberdoc.htmlPublic Variable | Short Description |
---|---|
<< (clj) | Resolves the variables from your template string from the local-env, or the namespace and puts them into your template for you. |
add-filter! (clj) | |
add-node (clj) | |
add-tag! (clj) | tag name, fn handler, and maybe tags. |
append-node (clj) | |
cache-off! (clj) | |
cache-on! (clj) | |
cache? (clj) | |
ensure-list (clj) | Turns the argument into a list if it isn't a list already. |
expr-tag (clj) | |
filter-tag (clj) | Compile-time parser of var tag filters. |
known-variable-paths (clj) | |
known-variables (clj) | |
parse (clj) | |
parse* (clj) | |
parse-file (clj) | |
parse-input (clj) | |
parse-tag (clj) | |
remove-tag! (clj) | |
render (clj) | render takes the string, the context-map and possibly also opts. |
render-file (clj) | Parses files if there isn't a memoized post-parse vector ready to go, renders post-parse vector with passed context-map regardless. |
render-template (clj) | vector of ^selmer.node.INodes and a context map. |
resolve-arg (clj) | Resolves an arg as passed to an add-tag! handler using the provided context-map. |
set-closing-tags! (clj) | |
set-resource-path! (clj) | set custom location, where templates are being searched for. |
skip-short-comment-tag (clj) | |
tag-content (clj) | Parses the content of a tag. |
templates (clj) | |
update-tag (clj) | |
update-tags (clj) | Assocs in the passed tag to the tags map. |