askama/askama_escape
René Kijewski 78cec97604 Make |tojson filter faster
This PR changes the filter `|tojson` so that it does not collect the
serialized data into a string, but writes the data into the target
writer directly.

This makes the benchmark run 81% (only serializing) or 39% (serializing
and escaping for HTML) faster. The benchmarked data is not a fair
representation for the data you would most likely serialize, though.
2024-05-01 11:08:32 +02:00
..
2021-07-01 16:10:43 +02:00
2024-05-01 11:08:32 +02:00
2024-05-01 11:08:32 +02:00

askama_escape: escaping utilities for the Askama templating engine

Documentation Latest version Build Status Chat

This crate contains helper code for HTML escaping used by the Askama templating engine.