5 Commits (2784f9d4929efc7bdedc240502953a027610ab3f)

Author SHA1 Message Date
Buddy Sandidge 2784f9d492 Add the ability to pass arguments to the route handler at route time
Arguments passed in to the route method at route time will be passed in
to the handler for that route.

var router = new Router()
router.add('/some/path' function (someParam) {
    // someParam would be 123
})
router.route('/some/path', {args: [123]})
9 years ago
Buddy Sandidge 2fbcab6dd2 Bump to version 0.1.2 9 years ago
Buddy Sandidge 9da1eabbf2 Bump to 0.1.1 9 years ago
Buddy Sandidge cc45cf24ee Bump to version 0.1.0 9 years ago
Buddy Sandidge 10371b7b1e Add Router that only matches exact strings with bootstrapped project
• Add linting with eslint
 • Add unit testing support with mocha with unit tests
 • Add Router class with support for only matching exact strings
 • Add RouteNode class for transversing all routes
9 years ago