Module environment

Module environment 

Source
Expand description

Environment holds render options and is the entry point for Environment::render_string.

It ties together crate::lexer::tokenize, crate::parser::parse, and crate::renderer::render.

Structs§

Environment
Configuration and entry point for rendering templates.
ExtensionDescriptor
Introspection-only descriptor for a registered extension (Nunjucks getExtension analog).

Type Aliases§

CustomFilter
User-registered filter (Nunjucks addFilter). Invoked as (input, extra_args…).
CustomGlobalFn
User-registered global function (Nunjucks addGlobal with a JS function in Node).
CustomTest
User-registered is test (Nunjucks addTest). Invoked as (value, extra_args…) -> bool.