Sha256: c2b731d63ba3d7149f2230b968532d8c735745cb9f44b1155aa40364d814e08c
Contents?: true
Size: 346 Bytes
Versions: 1
Compression:
Stored size: 346 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sinatra-exstatic-assets-3.0.0 | examples/app2/main.rb |