[go: up one dir, main page]

tera 0.10.10

Template engine based on Jinja2/Django templates
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate tera;
extern crate hyper;

// Doesn't do anything but ensures https://github.com/Keats/tera/issues/175 works
#[allow(dead_code)]
struct HttpHandler {
    templates: tera::Tera,
    http_client: hyper::Client,
}

impl hyper::server::Handler for HttpHandler {
    fn handle(&self, _: hyper::server::Request, _: hyper::server::Response) {
        // ...
    }
}

fn main() {}