minijinja::tests

Function is_test

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

Checks if a test with a given name is available.

{% if 'greaterthan' is test %}...{% endif %}