Function dilla_renderer::engine::engine_formatter
source · fn engine_formatter(
out: &mut Output<'_>,
state: &State<'_, '_>,
value: &Value
) -> Result<(), Error>
Expand description
Renders a value in an engine-specific format for Minijinja templates. This formatter is used by the init_jinja_environnement() function.
Arguments
- out - A mutable reference to the output where the formatted value will be written.
- state - An immutable reference to the state of the rendering process.
- value - An immutable reference to the value that needs to be formatted.
Errors
This function returns an Error if there is an error while writing the formatted value to the output.