sailfish/sailfish/src/lib.rs

14 lines
279 B
Rust
Raw Normal View History

2020-06-04 16:39:33 -04:00
pub mod runtime;
pub use runtime::{RenderError, RenderResult};
2020-06-06 06:16:08 -04:00
/// Template that can be rendered with consuming itself.
2020-06-04 16:39:33 -04:00
pub trait TemplateOnce {
fn render_once(self) -> runtime::RenderResult;
}
/// WIP
pub trait Template {
2020-06-06 06:16:08 -04:00
fn render(&self) -> runtime::RenderResult;
2020-06-04 16:39:33 -04:00
}