djc / askama

Type-safe, compiled Jinja-like templates for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unify integration API

Kijewski opened this issue · comments

There is

Shouldn't we use the moment, if we upload new versions of the integration crates anyway, to unify the APIs amongst the crates?

I like the API of askama_tide the best: One function try_into_response(&impl Template) to generate a Result<_>, and one function into_response(&impl Template) to generate a response that might be an error page.

Sounds good to me!