The templating struct allows you to execute gobal templates and render them towards a .pdf file.
Methods
Creates a new Templating from an Environment. It makes all templates of the Environment available.
Example
let env = get_environment;
let templating = new;
assert!;
fn empty() -> Templating
Creates a new empty Templating.
Example
let templating = empty;
assert!;
Generate a .pdf document as raw binary data.
Example
let templating = empty;
templating.add_template;
assert!;
Adds a new template to the templating system.
Example
let templating = empty;
templating.add_template;
Adds a new file to the templating system. This file can either be an image or data used by the templating.
Example
let templating = empty;
templating.add_file;