Struct mage::Template [] [src]

pub struct Template { /* fields omitted */ }

Template builder

Methods

impl Template
[src]

Create a template builder.

Set temlate from string.

Open a template file.

Set context.

Set template's root path.

Set template's extension.

Add value to context.

Add function to context.

Compile an template. An template can be compiled only once and then render multiple times with different context and function. You can also render a template without compile.

Render.

Trait Implementations

impl Default for Template
[src]

Returns the "default value" for a type. Read more