Struct handlebars::Handlebars [] [src]

pub struct Handlebars {
    // some fields omitted
}

The single entry point of your Handlebars templates

It maintains compiled templates and registered helpers.

Methods

impl Registry
[src]

Enable handlebars template source map

Register a template

Register a template string

Register a template from a path

Register a template from std::io::Read source

remove a template from the registry

register a helper

Register a new escape fn to be used from now on by this registry.

Restore the default escape fn.

Get a reference to the current escape fn.

Return a registered template,

Return a registered helper

Return all templates registered

Unregister all templates

Render a registered template with some data into a string

Render a registered template with some data to the std::io::Write

render a template string using current registry without register it

render a template string using current registry without register it

render a template source using current registry without register it