rocket_dyn_templates::minijinja::tests

Function is_filter

Source
pub fn is_filter(state: &State<'_, '_>, name: &str) -> bool
Expand description

Checks if a filter with a given name is available.

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