Struct handlebars_iron::HandlebarsEngine[][src]

pub struct HandlebarsEngine {
    pub sources: Vec<Box<Source + Send + Sync>>,
    pub registry: RwLock<Box<Handlebars>>,
}

The handlebars template engine

Fields

Methods

impl HandlebarsEngine
[src]

create a handlebars template engine

create a handlebars template engine from existed handlebars registry

add a template source

load template from registered sources

access internal handlebars registry, useful to register custom helpers

Trait Implementations

impl Key for HandlebarsEngine
[src]

The value type associated with this key type.

impl PluginFor<Response> for HandlebarsEngine
[src]

The error type associated with this plugin.

Create the plugin from an instance of the extended type. Read more

impl AfterMiddleware for HandlebarsEngine
[src]

Do whatever post-processing this middleware should do.

Respond to an error thrown by previous AfterMiddleware, the Handler, or a BeforeMiddleware. Read more

Auto Trait Implementations