Module renderer

Module renderer 

Source
Expand description

Walks crate::ast::Node trees and produces output strings using an crate::Environment and JSON context.

Structs§

CallerFrame
One active {% call %}: body to render for caller() / caller(args…), plus optional formal parameters.
CtxStack
Nunjucks-style frame stack: inner frames shadow outer; set updates the innermost existing binding.
RenderState
Per-render state: optional loader, include cycle stack, macro scopes, and block inheritance for extends.

Functions§

render
Renders root to a string using env and ctx_stack.
render_entry
Entry: handle {% extends %} child templates, otherwise normal render.