module Roda::RodaPlugins::NamedTemplates::InstanceMethods
Private Instance Methods
Source
# File lib/roda/plugins/named_templates.rb, line 82 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.
Calls superclass method