abstract class Crinja::TemplateCache

Overview

Caching for parsed Template objects.

Direct Known Subclasses

Defined in:

util/template_cache.cr

Instance Method Summary

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.


[View source]