module Roda::RodaPlugins::Render::InstanceMethods
def cached_template(opts, &block)
If caching templates, attempt to retrieve the template from the cache. Otherwise, just yield
def cached_template(opts, &block) if key = opts[:cache_key] cache = render_opts[:cache] unless template = cache[key] template = cache[key] = yield end template else yield end end