Class | Tilt::Cache |
In: |
lib/tilt.rb
|
Parent: | Object |
Extremely simple template cache implementation. Calling applications create a Tilt::Cache instance and use fetch with any set of hashable arguments (such as those to Tilt.new):
cache = Tilt::Cache.new cache.fetch(path, line, options) { Tilt.new(path, line, options) }
Subsequent invocations return the already loaded template object.