Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a path-template matcher implementation to emulate Sinatra's splat parameters #3

Open
jeko2000 opened this issue Mar 23, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jeko2000
Copy link
Owner

Sinatra allows matching against splat or wildcard parameters.

Per their docs:

get '/say/*/to/*' do
  # matches /say/hello/to/world
  params['splat'] # => ["hello", "world"]
end

get '/download/*.*' do
  # matches /download/path/to/file.xml
  params['splat'] # => ["path/to/file", "xml"]
end

It may be useful to write a path-template matcher implementation to emulate this behavior.

@jeko2000 jeko2000 self-assigned this Mar 23, 2022
@jeko2000 jeko2000 added the enhancement New feature or request label Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant