abstract class Crinja::TemplateCache
- Crinja::TemplateCache
- Reference
- Object
Overview
Caching for parsed Template
objects.
Direct Known Subclasses
Defined in:
util/template_cache.crInstance Method Summary
-
#fetch(env, name, file_name, source, &)
Try to fetch template from cache.
Instance Method Detail
abstract
def fetch(env, name, file_name, source, &)
#
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.