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

Version Path
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/sinatra-contrib-1.4.7/lib/sinatra/contrib.rb
sinatra-contrib-1.4.7 lib/sinatra/contrib.rb
sinatra-contrib-1.4.6 lib/sinatra/contrib.rb
sinatra-contrib-1.4.4 lib/sinatra/contrib.rb
scout_realtime-1.0.5 lib/vendor/sinatra-contrib-1.4.1/lib/sinatra/contrib.rb
scout_realtime-1.0.4 lib/vendor/sinatra-contrib-1.4.1/lib/sinatra/contrib.rb
scout_realtime-1.0.3 lib/vendor/sinatra-contrib-1.4.1/lib/sinatra/contrib.rb
scout_realtime-1.0.3.pre lib/vendor/sinatra-contrib-1.4.1/lib/sinatra/contrib.rb
scout_realtime-1.0.2 lib/vendor/sinatra-contrib-1.4.1/lib/sinatra/contrib.rb
scout_realtime-1.0.1 lib/vendor/sinatra-contrib-1.4.1/lib/sinatra/contrib.rb
scout_realtime-1.0.0 lib/vendor/sinatra-contrib-1.4.1/lib/sinatra/contrib.rb
scout_realtime-0.5.5 lib/vendor/sinatra-contrib-1.4.1/lib/sinatra/contrib.rb
scout_realtime-0.5.5.pre lib/vendor/sinatra-contrib-1.4.1/lib/sinatra/contrib.rb
scout_realtime-0.5.4 lib/vendor/sinatra-contrib-1.4.1/lib/sinatra/contrib.rb
scout_realtime-0.5.3 lib/vendor/sinatra-contrib-1.4.1/lib/sinatra/contrib.rb
scout_realtime-0.5.2 lib/vendor/sinatra-contrib-1.4.1/lib/sinatra/contrib.rb
scout_realtime-0.5.1 lib/vendor/sinatra-contrib-1.4.1/lib/sinatra/contrib.rb
sinatra-contrib-1.4.2 lib/sinatra/contrib.rb
sinatra-contrib-1.4.1 lib/sinatra/contrib.rb
sinatra-contrib-1.4.0 lib/sinatra/contrib.rb