I'd like to have the full power of a regex when creating the routes. The main use I have for it right now is to use
repetitions of groups to match extensions anywhere in a directory tree.
get '/*.rthml' {'hi'} # won't match /mydir/index.rhtml
get /(.*)\.rhtml/ {'hi'} # would
This kind of approach would work really well for a simple app that just needs a bunch of ERB files to be pulled from
disk, executed and return. |