#![cfg(feature = "handlebars")] #[macro_use] extern crate finchers; extern crate finchers_template; #[macro_use] extern crate log; extern crate pretty_env_logger; #[macro_use] extern crate serde; extern crate handlebars; use finchers::prelude::*; use finchers_template::renderer; use handlebars::Handlebars; #[derive(Debug, Serialize)] struct UserInfo { name: String, } impl UserInfo { const TEMPLATE_NAME: &'static str = "index.html"; const TEMPLATE_STR: &'static str = "\