By matching parsed data against patterns, it can decide which action to take.
Crossroads.js is very powerful, and if used properly, can reduce code complexity.
It can decouple objects by abstracting navigation paths and server requests.
Crossroads.js can be used with most JS libraries and frameworks.
Crossroads.js was inspired by URL Route/Dispatch utilities present in most MVC frameworks like Django, Ruby on Rails, Pyramid, CakePHP or CodeIgniter.
Requirements:
· JavaScript enabled on client side
What's New in This Release: [ read full changelog ]
· Made it possible to have a different patternLexer per router.
· Added trailing/leading ";" to crossroads.min.js to avoid concat issues.
· Improved UMD wrapper so crossroads.min.js should also work with r.js.