This PR allows users to set the hashbang option to '#' in addition to true. This allows users to use a simple hash for routing, instead of just the hashbang.
hashbang: true - existing functionality, use #!
hashbang: '#' - similar functionality, but use # instead of #!
hashbang: <anything else> - hashbang is disabled
Adds tests for using # (new functionality) and ## (invalid value, hashbang disabled).
I considered adding this functionality as a new option, and possibly renaming hashbang to hash or useHash, but going that far would be a breaking API change. This seemed simpler, but I'm open to changing how this functionality is exposed.
Coverage increased (+0.2%) to 89.437% when pulling 82bc3f975a90d8dce8280a43dc3293fdf9ee8646 on w33ble:feat/custom-hash into 1034c8cbed600ea7da378a73716c885227c03270 on visionmedia:master.
This PR allows users to set the
hashbang
option to '#' in addition totrue
. This allows users to use a simple hash for routing, instead of just the hashbang.hashbang: true
- existing functionality, use#!
hashbang: '#'
- similar functionality, but use#
instead of#!
hashbang: <anything else>
- hashbang is disabledAdds tests for using
#
(new functionality) and##
(invalid value, hashbang disabled).I considered adding this functionality as a new option, and possibly renaming
hashbang
tohash
oruseHash
, but going that far would be a breaking API change. This seemed simpler, but I'm open to changing how this functionality is exposed.