[][src]Function askama::filters::yaml

pub fn yaml<E, S>(e: E, s: &S) -> Result<MarkupDisplay<E, String>, Error> where
    E: Escaper,
    S: Serialize

Serialize to JSON (requires serde_json feature)

Errors

This will panic if S's implementation of Serialize decides to fail, or if T contains a map with non-string keys.