class Crinja::TemplateCache::InMemory
- Crinja::TemplateCache::InMemory
- Crinja::TemplateCache
- Reference
- Object
Overview
This cache stores Template
objects in a Hash
.
Defined in:
util/template_cache.crInstance Method Summary
-
#fetch(env, name, file_name, source, &)
Try to fetch template from cache.
Instance methods inherited from class Crinja::TemplateCache
fetch(env, name, file_name, source, &)
fetch
Instance Method Detail
def fetch(env, name, file_name, source, &)
#
Description copied from class Crinja::TemplateCache
Try to fetch template from cache. If not found, this method yields and in the attached block the template should be initialized. Implementing classes should store the value from the yield and return it to the caller.