1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#![allow(dead_code)]

// Needed by pest
#![recursion_limit = "200"]

#![cfg_attr(feature = "dev", feature(plugin))]
#![cfg_attr(feature = "dev", plugin(clippy))]
#![cfg_attr(feature = "dev", allow(block_in_if_condition_stmt, linkedlist))]

extern crate serde;
extern crate serde_json;
extern crate glob;
#[macro_use]
extern crate pest;
#[macro_use]
extern crate quick_error;
extern crate slug;
extern crate regex;
#[macro_use]
extern crate lazy_static;
extern crate url;

mod errors;
#[macro_use]
mod macros;
mod parser;
mod context;
mod render;
mod template;
mod tera;
mod filters;
mod testers;


// Library exports.

// Template is meant to be used internally only but is exported for test/bench.
#[doc(hidden)] pub use template::Template;
pub use context::Context;
pub use tera::Tera;
pub use errors::{TeraResult, TeraError};