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.
- Extension
Descriptor - Introspection-only descriptor for a registered extension (Nunjucks
getExtensionanalog).
Type Aliases§
- Custom
Filter - User-registered filter (Nunjucks
addFilter). Invoked as(input, extra_args…). - Custom
Global Fn - User-registered global function (Nunjucks
addGlobalwith a JS function in Node). - Custom
Test - User-registered
istest (NunjucksaddTest). Invoked as(value, extra_args…) -> bool.