Files
kumomta/docs
3abb6bb615 kumo-template: avoid copying the Handlebars context (#637)
handlebars::Context::wraps serializes its argument with
serde_json::to_value, so passing it an existing serde_json::Value
deep-copies the whole substitution context a second time.

Both Handlebars paths already hold an owned serde_json::Value at that
point (render_to_write, and prepare_context which batch injection uses
once per recipient), so take ownership of it with Context::from
instead. The rendered output is unchanged, and the error case that
wraps reported (a serialization failure) cannot occur for a value that
is already JSON.

---------

Co-authored-by: Akshit Sethi <akshits@adobe.com>
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2026-11-04 16:42:56 +00:00
..
2025-11-26 16:46:25 +00:00
2026-09-01 15:31:35 -04:00
2026-08-19 14:36:58 -04:00
2026-07-09 21:46:20 -04:00
2025-02-20 16:00:16 -07:00