Sha256: 80ed51c03e922f2c7de4a0ef420cfb085dac1070cfc116a126be86959abb05b0

Contents?: true

Size: 404 Bytes

Versions: 2

Compression:

Stored size: 404 Bytes

Contents

require 'sinatra/base'
require 'sinatra/exstatic_assets'

module Example
  class App2 < Sinatra::Base
    register Sinatra::Exstatic

    configure do
      set :root, __dir__
      set :public_folder, Proc.new { File.join(root, "public") }
    end

    get "/" do
      erb :index
    end

    get "/deeper" do
      erb :index
    end

    get "/deeper/and-deeper" do
      erb :index
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sinatra-exstatic-assets-3.1.1 examples/app2/main.rb
sinatra-exstatic-assets-3.1.0 examples/app2/main.rb