Function askama_shared::filters::yaml
source · [−]pub fn yaml<E: Escaper, S: Serialize>(
e: E,
s: S
) -> Result<MarkupDisplay<E, String>>
Expand description
Serialize to YAML (requires serde_yaml
feature)
Errors
This will panic if S
’s implementation of Serialize
decides to fail,
or if T
contains a map with non-string keys.