Function minijinja::functions::debug

source ·
pub fn debug(state: &State<'_, '_>) -> String
Available on crate feature builtins only.
Expand description

Outputs the current context stringified.

This is a useful function to quickly figure out the state of affairs in a template. It emits a stringified debug dump of the current engine state including the layers of the context, the current block and auto escaping setting.

<pre>{{ debug() }}</pre>