Struct handlebars_iron::HandlebarsEngine [-] [+] [src]

pub struct HandlebarsEngine {
    pub prefix: String,
    pub suffix: String,
    pub registry: RwLock<Box<Handlebars>>,
}

Fields

prefix
suffix
registry

Methods

impl HandlebarsEngine

fn reload(&self)

fn new(prefix: &str, suffix: &str) -> HandlebarsEngine

Trait Implementations

impl Key for HandlebarsEngine

type Value = Template

impl PluginFor<Response> for HandlebarsEngine

type Error = ()

fn eval(resp: &mut Response) -> Result<Template, ()>

impl AfterMiddleware for HandlebarsEngine

fn after(&self, _: &mut Request, r: Response) -> IronResult<Response>

fn catch(&self, &mut Request, err: IronError) -> Result<Response, IronError>