Struct polly::Template [] [src]

pub struct Template { /* fields omitted */ }

The Polly template.

Methods

impl Template
[src]

Get a component from within the template.

Get a function from within the template.

Loads the template from the file path.

Specify that a template has no locales available.

Loads the template from the source provided. The file path is also required, for error handling

Pass in a serde_json Object, for the JSON of the template.

Override the default locales directory.

Registers a function to the template.

Imports components from another template.

Renders the template into a HTML String.

Renders the component, or panics if there is an error.