lib/roda/plugins/render.rb
# Retrieve the Tilt::Template object for the given template and opts.
Retrieve the Tilt::Template object for the given template and opts.
Retrieve the Tilt :: Template object for the given template and opts .
def retrieve_template(opts)
          unless opts[:cache_key] && opts[:cache] != false
            found_template_opts = opts = find_template(opts)
          end
          cached_template(opts) do
            opts = found_template_opts || find_template(opts)
            template_opts = render_opts[:template_opts]
            if engine_opts = render_opts[:engine_opts][opts[:engine]]
              template_opts = Hash[template_opts].merge!(engine_opts)
            end
            if current_template_opts = opts[:template_opts]
              template_opts = Hash[template_opts].merge!(current_template_opts)
            end
            opts[:template_class].new(opts[:path], 1, template_opts, &opts[:template_block])
          end
        end
def retrieve_template ( opts ) unless opts [ :cache_key ] && opts [ :cache ] != false found_template_opts = opts = find_template ( opts ) end cached_template ( opts ) do opts = found_template_opts || find_template ( opts ) template_opts = render_opts [ :template_opts ] if engine_opts = render_opts [ :engine_opts ] [ opts [ :engine ] ] template_opts = Hash [ template_opts ] . merge! ( engine_opts ) end if current_template_opts = opts [ :template_opts ] template_opts = Hash [ template_opts ] . merge! ( current_template_opts ) end opts [ :template_class ] . new ( opts [ :path ] , 1 , template_opts , & opts [ :template_block ] ) end end
Retrieve the Tilt::Template object for the given template and opts.
Retrieve the Tilt :: Template object for the given template and opts .
opts
<not_specific>