lib/roda/plugins/named_templates.rb
# If a template name is given and it matches a named template, call
# the named template block to get the inline template to use.
If a template name is given and it matches a named template, call
the named template block to get the inline template to use.
If a template name is given and it matches a named template call the named template block to get the inline template to use .
def find_template(options)
          if options[:template] && (template_opts, meth = opts[:named_templates][template_name(options)]; meth)
            if template_opts
              options = template_opts.merge(options)
            else
              options = Hash[options]
            end
            options[:inline] = send(meth)
            super(options)
          else
            super
          end
        end
def find_template ( options ) if options [ :template ] && ( template_opts , meth = opts [ :named_templates ] [ template_name ( options ) ] ; meth ) if template_opts options = template_opts . merge ( options ) else options = Hash [ options ] end options [ :inline ] = send ( meth ) super ( options ) else super end end
If a template name is given and it matches a named template, call
the named template block to get the inline template to use.
If a template name is given and it matches a named template call the named template block to get the inline template to use .
options