class Tilt::Cache
Subsequent invocations return the already compiled template object.
cache.fetch(path, line, options) { Tilt.new(path, line, options) }
cache = Tilt::Cache.new
arguments (such as those to Tilt.new):
create a Tilt::Cache instance and use #fetch with any set of hashable
Extremely simple template cache implementation. Calling applications
def clear
def clear @cache = {} end
def fetch(*key)
def fetch(*key) @cache[key] ||= yield end
def initialize
def initialize @cache = {} end