module Roda::RodaPlugins::ViewSubdirs::InstanceMethods
def set_view_subdir(v)
Set the view subdirectory to use. This can be set to nil
def set_view_subdir(v) @_view_subdir = v end
def template_name(opts)
there is a view subdirectory and the template name does not
Override the template name to use the view subdirectory if the
def template_name(opts) name = super if (v = @_view_subdir) && name !~ /\// "#{v}/#{name}" else name end end