Struct mage::Cache [] [src]

pub struct Cache { /* fields omitted */ }

Compiled template cache

Examples

use mage::Cache;

let mut cache = Cache::new();
cache.load("examples", "html");

let template = cache.get("main").unwrap();
let output = template.render().unwrap();

Methods

impl Cache
[src]

Create a cache.

Load templates with the given root and extension.

Find cached template.

Trait Implementations

impl Default for Cache
[src]

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