Sha256: b0887a3170d60dc885180d8292e5393ff023e56ffc3c99aada2df71400cd8d4b
Contents?: true
Size: 897 Bytes
Versions: 25
Compression:
Stored size: 897 Bytes
Contents
require 'sinatra/contrib/setup' module Sinatra module Contrib ## # Common middleware that doesn't bring run time overhead if not used # or breaks if external dependencies are missing. Will extend # Sinatra::Application by default. module Common register :ConfigFile register :MultiRoute register :Namespace register :RespondWith helpers :Capture helpers :ContentFor helpers :Cookies helpers :EngineTracking helpers :JSON helpers :LinkHeader helpers :Streaming end ## # Other extensions you don't want to be loaded unless needed. module Custom # register :Compass register :Decompile register :Reloader end ## # Stuff that aren't Sinatra extensions, technically. autoload :Extension autoload :TestHelpers end register Sinatra::Contrib::Common end
Version data entries
25 entries across 25 versions & 5 rubygems