Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tokuhirom/micro_dispatcher.js
https://github.com/tokuhirom/micro_dispatcher.js
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tokuhirom/micro_dispatcher.js
- Owner: tokuhirom
- License: mit
- Created: 2013-01-01T05:54:48.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-04T03:19:03.000Z (almost 12 years ago)
- Last Synced: 2024-10-11T20:59:48.401Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 126 KB
- Stars: 22
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkdn
- License: LICENSE
Awesome Lists containing this project
README
micro_dispatcher.js
===================WHAT'S THIS?
------------This is yet another tiny javascript library for dispatching.
DISPATCHER
----------var dispatcher = new MicroDispatcher();
dispatcher.register('/my/', function () {
// your code here
});
dispatcher.register('/user/:id', function (id) {
// your code here
});
dispatcher.dispatch(location.pathname);REQUIREMENTS
------------There is no dependencies.