pub mod escape;
pub mod helpers;
pub mod stack;
pub mod vite;
pub use askama;
pub use askama::Template;
pub use helpers::{class_list, lang, lang_choice, style_list, FormErrors, OldInput};
pub trait View: askama::Template {
fn render_view(&self) -> Result<String, askama::Error> {
let raw = self.render()?;
Ok(stack::postprocess(&raw))
}
}
impl<T: askama::Template> View for T {}