SYNOPSIS
Parses urls so you can "route"
MOTIVATION
For when you want url parameters but not a big bloated router
USAGE
var fs = var http = var paramify = http { res} { var message = 'Show starts at' paramsstart 'and ends at' paramsend + '\n' res} { // match.params contains numeric keys for any // path components matched with * fs} console
Given the following url
http://localhost:1337/showtimes/10:00AM/8:30PM
The server would respond with
Show starts at 10:00AM and ends at 8:30PM
Given the following url
http://localhost:1337/intro/Hello%20world!
The server would respond with
Greeting was "Hello world!"
Given the following url
http://localhost:1337/files/users/1/description.txt
The server would respond with the contents of static/users/1/description.txt
.