vendor/bundle/ruby/1.8/gems/sinatra-1.2.8/lib/sinatra/base.rb
def find_template(views, name, engine)
      yield ::File.join(views, "#{name}.#{@preferred_extension}")
      Tilt.mappings.each do |ext, engines|
        next unless ext != @preferred_extension and Array(engines).include? engine
        yield ::File.join(views, "#{name}.#{ext}")
      end
    end
# Calls the given block for every possible template file in views,
# named name.ext, where ext is registered on engine.
Calls the given block for every possible template file in views,
named name.ext, where ext is registered on engine.
Calls the given block for every possible template file in views named name . ext where ext is registered on engine .
def find_template(views, name, engine)
      yield ::File.join(views, "#{name}.#{@preferred_extension}")
      Tilt.mappings.each do |ext, engines|
        next unless ext != @preferred_extension and Array(engines).include? engine
        yield ::File.join(views, "#{name}.#{ext}")
      end
    end
def find_template ( views , name , engine ) yield :: File . join ( views , "#{name}.#{@preferred_extension}" ) Tilt . mappings . each do | ext , engines | next unless ext != @preferred_extension and Array ( engines ) . include? engine yield :: File . join ( views , "#{name}.#{ext}" ) end end
Calls the given block for every possible template file in views,
named name.ext, where ext is registered on engine.
Calls the given block for every possible template file in views named name . ext where ext is registered on engine .
views
name
engine