Sha256: 44fae5ee1317091d33d317dce8aef1c3bb8e3132820fd41cf361e146556ca017

Contents?: true

Size: 537 Bytes

Versions: 8

Compression:

Stored size: 537 Bytes

Contents

require 'dashing'

configure do
  set :auth_token, 'YOUR_AUTH_TOKEN'

  # See http://www.sinatrarb.com/intro.html > Available Template Languages on
  # how to add additional template languages.
  set :template_languages, %i[html erb]
  set :show_exceptions, false

  helpers do
    def protected!
      # Put any authentication code you want in here.
      # This method is run before accessing any resource.
    end
  end
end

map Sinatra::Application.assets_prefix do
  run Sinatra::Application.sprockets
end

run Sinatra::Application

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
smashing-1.3.6 templates/project/config.ru
smashing-1.3.5 templates/project/config.ru
smashing-1.3.4 templates/project/config.ru
smashing-1.3.3 templates/project/config.ru
smashing-1.3.2 templates/project/config.ru
smashing-1.3.1 templates/project/config.ru
smashing-1.3.0 templates/project/config.ru
smashing-1.2.0 templates/project/config.ru