quirkey/sammy — pull request #170 by deitch (2012-11-08 12:42:13+00:00)
Title: Added support for asynchronous chaining, asynchronous finally, and tests

Added support for asynchronous chaining of multiple callbacks for a route, without breaking backward compatibility of single route.

Last argument to every callback is always next, whether it has a single 'context' argument, or multiple unnamed splat arguments.

Added async-supporting finally() function to be called after last next() in chaining route.

Added 1 test for chaining, and 1 for finally.

Updated tests to reflect that route.callback is now an array of function, rather than a single function.

See https://github.com/quirkey/sammy/issues/168