Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
recommended syntax breaks can.route #462
The documentation for http://canjs.com/docs/can.route.html has several inconsistencies:
! (hash-bang) is entered as !# (bang-hash) in multiple places
more importantly, can.route('#!foo/:id') breaks the pretty URL functionality of can.route. It should be can.route('foo/:id') without the hashbang..
This is not huge to fix, but is important as the recommended syntax causes the library to fail silently, producing 4 change events per update and a blank hash value...