Function minijinja::tests::is_filter

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

Checks if a filter with a given name is available.

{% if 'tojson' is filter %}...{% endif %}