examples/app2/main.rb in sinatra-exstatic-assets-2.0.4 vs examples/app2/main.rb in sinatra-exstatic-assets-3.0.0
- old
+ new
@@ -4,13 +4,18 @@
module Example
class App2 < Sinatra::Base
register Sinatra::Exstatic
configure do
- set :public_folder, "public"
+ 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
\ No newline at end of file