Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/srounce/skipper
https://github.com/srounce/skipper
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/srounce/skipper
- Owner: srounce
- Created: 2013-01-19T00:10:54.000Z (almost 12 years ago)
- Default Branch: develop
- Last Pushed: 2013-01-23T15:50:15.000Z (almost 12 years ago)
- Last Synced: 2024-04-14T14:44:05.283Z (7 months ago)
- Size: 110 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Skipper
A lightweight multipurpose controller chassis###Example of controller interface (unstable)
####mycontroller.js:
```javascript
controller(function MyController()
{
extends(require('./mysupercontroller'))route(function () {
console.log('>> the index');
})route(function namedFunc() {
console.log('>> namedFunc');
})route(function otherNamedFunc() {
before(connectCompatibleMiddleware);console.log('>> otherNamedFunc')
})before([ namedFunc, otherNamedFunc ], function(req, res) {
// Connect compatible middleware
})after([ namedFunc ], middlewareFunc)
})
```