1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
//!Fiber is basis of Fabric. Every Plugin for Fabric should import this #[deny(warnings, missing_docs)] extern crate tera; pub use tera::Tera; pub use tera::Context; ///Every server data has to implement this trait, so templates can be accessed from views pub trait ServerData { ///Get the Tera object fn template<'a>(&'a self) -> &'a Tera; } #[cfg(test)] mod tests { #[test] fn it_works() { } }