Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

epergo/mustermann-sinatra-extension

Repository files navigation

Mustermann Sinatra Extension

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.

Installation

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

Usage

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

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/sinatra/mustermann-sinatra-extension.

License

The gem is available as open source under the terms of the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages