3 ms·
Standalone JavaScript Routing
- torme 15y agoThere's also a really nice pre-existing library for this: PathJS. https://github.com/mtrpcic/pathjs https://github.com/mtrpcic/pathjs Been using this for a while, with a lot of success.
- jvoorhis 15y agoCrossroads is another stand-alone routing library with only one external dependency. http://millermedeiros.github.com/crossroads.js/ http://millermedeiros.github.com/crossroads.js/
- insin 15y agoI see crossroads also lets you use the same code on both ends. Added it to a document I recently started for components, frameworks and articles of interest to people trying to share the same codebase on the client and server: http://insin-notes.readthedocs.org/en/latest/scratch/dual-sided_javascript.html http://insin-notes.readthedocs.org/en/latest/scratch/dual-si...