evancz / url-parser

Parse URLs into nicely structured data
http://package.elm-lang.org/packages/evancz/url-parser/latest/
BSD 3-Clause "New" or "Revised" License
114 stars 29 forks source link

Allow parsing remaining segments #30

Closed michalmuskala closed 7 years ago

michalmuskala commented 7 years ago

This adds a parser for returning the remaining segments as a list of strings.

It's extremely useful in dynamic routing situations, where the routing reflects a file system hierarchy - I found no way to achieve such behaviour with the already present functions.

process-bot commented 7 years ago

Thanks for the pull request! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

nickmiller-wf commented 7 years ago

My project really needs this.

evancz commented 7 years ago

This is pretty straight forward to add, so I can add it myself if that makes sense after I review this library.

nickmiller-wf commented 7 years ago

thanks @evancz!