pub struct State<'vm, 'env> { /* private fields */ }
Expand description
Provides access to the current execution state of the engine.
A read only reference is passed to filter functions and similar objects to allow limited interfacing with the engine. The state is useful to look up information about the engine in filter, test or global functions. It not only provides access to the template environment but also the context variables of the engine, the current auto escaping behavior as well as the auto escape flag.
Implementations
Returns a reference to the current environment.
Returns the current value of the auto escape flag.
Returns the name of the innermost block.