Struct handlebars_iron::HandlebarsEngine
[−]
[src]
pub struct HandlebarsEngine { // some fields omitted }
Methods
impl HandlebarsEngine
[src]
fn new(prefix: &str, suffix: &str) -> HandlebarsEngine
Trait Implementations
impl Key for HandlebarsEngine
[src]
impl PluginFor<Response> for HandlebarsEngine
[src]
type Error = ()
The error type associated with this plugin.
fn eval(resp: &mut Response) -> Result<Template, ()>
Create the plugin from an instance of the extended type. Read more
impl AfterMiddleware for HandlebarsEngine
[src]
fn after(&self, _: &mut Request, r: Response) -> IronResult<Response>
Do whatever post-processing this middleware should do.
fn catch(&self, &mut Request, err: IronError) -> Result<Response, IronError>
Respond to an error thrown by previous AfterMiddleware
, the Handler
, or a BeforeMiddleware
. Read more