class Tilt::Cache

Extremely simple template cache implementation.

def clear

def clear
  @cache = {}
end

def fetch(*key)

def fetch(*key)
  key = key.map { |part| part.to_s }.join(":")
  @cache[key] ||= yield
end

def initialize

def initialize
  @cache = {}
end