ATTENTION This extension is deprecated, since Sinatra > 2.0 Mustermann is used by default and the installation of this extension is not needed.
Only use this extension if you plan to use Sinatra versions under 2.0.
Add this line to your application's Gemfile:
gem 'mustermann-sinatra-extension'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install mustermann-sinatra-extension
With classic Sinatra application
require 'sinatra'
require 'mustermann/extension'
register Mustermann::Extension
get('/:id', capture: /\d+/) { ... }
With modular Sinatra application
require 'sinatra/base'
require 'mustermann/extension'
class MyApp < Sinatra::Base
register Mustermann::Extension
get('/:id', capture: /\d+/) { ... }
end
Bug reports and pull requests are welcome on GitHub at https://github.com/sinatra/mustermann-sinatra-extension.
The gem is available as open source under the terms of the MIT License.