Add axum support

This commit is contained in:
Joscha 2024-11-27 00:15:01 +01:00
parent d18f9d2171
commit 2b1fefe882
6 changed files with 656 additions and 1 deletions

View file

@ -105,3 +105,9 @@ impl Element {
/// A `Document(el)` is basically the same as `[Content::doctype(), el.into()]`
/// for the purposes of the [`crate::Render`] trait.
pub struct Document(pub Element);
impl From<Element> for Document {
fn from(value: Element) -> Self {
Self(value)
}
}