module Roda::RodaPlugins::AdditionalViewDirectories::InstanceMethods

def template_path(opts)

the template, return the original path.
the first path that exists. If no additional directory includes
in each of the additional view directories, in order, returning
If the template path does not exist, try looking for the template
def template_path(opts)
  orig_path = super
  unless File.file?(orig_path)
    self.opts[:additional_view_directories].each do |view_dir|
      path = super(opts.merge(:views=>view_dir))
      return path if File.file?(path)
    end
  end
  orig_path
end