sailfish/sailfish/src/lib.rs

18 lines
393 B
Rust
Raw Normal View History

2020-06-13 13:47:20 -04:00
#![doc(
2020-06-13 13:50:24 -04:00
html_logo_url = "https://raw.githubusercontent.com/Kogia-sima/sailfish/master/resources/icon.png"
2020-06-13 13:47:20 -04:00
)]
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
}