mcavage/node-restify — pull request #134 by domenic (2012-04-25 20:26:01+00:00)
Title: Adding `Route.prototype.realize`.

Gives you a route's URL with params replaced by a passed hash's values.

I'm about 90% sure it conforms to restify's route-matching rules, which seem to be that route params can only be path segments (i.e. sandwiched between `/`s), and have no restrictions on valid characters.

I think there might be better places in the API for this, but `Route` was pretty convenient. It is a bit strange though since it is really a URL-level operation, not a route-level one. (That is, method is entirely ignored.)

An alternative might be just `restify.realizeUrl(url, params)`.

Also feel free to suggest a better name.