Struct twig::Engine [] [src]

pub struct Engine<L> {
    // some fields omitted
}

Twig Engine.

Given the specified environment settings, converts templates to output string.

Methods

impl<L: Loader> Engine<L>

fn new(loader: L, env: Environment) -> Engine<L>

fn get<D: Into<Value>>(&mut self, name: &str, data: D) -> Result<String>