Enum nickel::template_cache::ReloadPolicy [] [src]

pub enum ReloadPolicy {
    Never,
    Periodic(Duration),
    Always,
}

ReloadPolicy controls how often the modification time of template file is checked. Checks take place only when rendering the template.

Variants

Never check for changes. Once loaded, templates will not change unless one of TemplateCache::clear or TemplateCache::reload_template are called, or the server is restarted.

Check after a period of time. For example, with a duration of 30 min, the template will be checked no more than once every 30 min.

Check every time the template is rendered.