
impl Handler for TemplateHandler {
    fn handle(&self, req: &mut Request) -> IronResult<Response> {
        let params = req.get_ref::<Params>().unwrap();
        let param_template_data = DataMap::from(params);
        let mut resp = Response::new();
        let data: Value = param_template_data.into();
        resp.set_mut(Template::new(self.path, data)).set_mut(status::Ok);
        Ok(resp)
    }
}