Sha256: fdf5402d5919699ef70f9f075405e73e677aee890abdfa20de6be34134643b6a
Contents?: true
Size: 526 Bytes
Versions: 44
Compression:
Stored size: 526 Bytes
Contents
module Jpmobile module Sinatra class Base < ::Sinatra::Base # 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) if env['rack.jpmobile'] and !env['rack.jpmobile'].variants.empty? env['rack.jpmobile'].variants.each do |variant| yield ::File.join(views, "#{name}_#{variant}.#{@preferred_extension}") end end super end end end end
Version data entries
44 entries across 44 versions & 1 rubygems