ahecha_html/
lib.rs

1pub use html_escaping::escape_html;
2use http::{StatusCode, Uri};
3
4mod component;
5mod html;
6mod html_escaping;
7mod integrations;
8// #[cfg(feature = "partials")]
9// pub mod partials;
10mod render;
11
12pub use self::{component::*, html::*, render::RenderString};
13
14// TODO: improve redirection
15pub enum MaybeRedirect<C>
16where
17  C: Component,
18{
19  Redirect(StatusCode, Uri),
20  Else(C),
21}