{"_id":"ractive-route","_rev":"14-b6a988811e56a71d626824a41584dc2d","name":"ractive-route","dist-tags":{"latest":"0.3.13"},"versions":{"0.3.3":{"name":"ractive-route","version":"0.3.3","keywords":["ractive","routing","router"],"author":{"url":"http://kolarik.sk","name":"Martin Kolárik","email":"martin@kolarik.sk"},"license":"MIT","_id":"ractive-route@0.3.3","maintainers":[{"name":"martin-kolarik","email":"martin@kolarik.sk"}],"homepage":"https://github.com/MartinKolarik/ractive-route/","bugs":{"url":"https://github.com/MartinKolarik/ractive-route/issues/"},"dist":{"shasum":"912a350b15af7337c7756353aada1ae0871522ec","tarball":"https://registry.npmjs.org/ractive-route/-/ractive-route-0.3.3.tgz","integrity":"sha512-FtITj5WCP2wK1iVoHYuF63HartpRd2QaX4j3mVw1KzSoMLZtKOXNMb4LPSlf91Mu40syJxbvqzvBdQN6+qiR5w==","signatures":[{"sig":"MEUCICQQkWi6H37ZDkwNlbul8wKtOBQ9LxkfBWtqwuXQnmikAiEAs8MmG0kx/mUQWgfmX0TFOUvN7wSIrVD7PTScOeg0fEE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"ractive-route.js","github":"https://github.com/MartinKolarik/ractive-route/","gitHead":"726ed379d78c236edf3d32a3775353db72b3dd4a","scripts":{"test":"mocha && mocha-phantomjs test/tests.html"},"_npmUser":{"name":"martin-kolarik","email":"martin@kolarik.sk"},"repository":{"url":"git+https://github.com/MartinKolarik/ractive-route.git","type":"git"},"_npmVersion":"5.0.3","description":"Routing library for Ractive.js","directories":{},"_nodeVersion":"8.1.4","devDependencies":{"chai":"3.0.0","grunt":"0.4.5","mocha":"2.2.5","rewire":"2.3.4","ractive":"0.7.3","mocha-phantomjs":"3.5.3","grunt-contrib-uglify":"0.9.1"},"_npmOperationalInternal":{"tmp":"tmp/ractive-route-0.3.3.tgz_1503066076972_0.5964260087348521","host":"s3://npm-registry-packages"}},"0.3.4":{"name":"ractive-route","version":"0.3.4","keywords":["ractive","routing","router"],"author":{"url":"http://kolarik.sk","name":"Martin Kolárik","email":"martin@kolarik.sk"},"license":"MIT","_id":"ractive-route@0.3.4","maintainers":[{"name":"martin-kolarik","email":"martin@kolarik.sk"}],"homepage":"https://github.com/MartinKolarik/ractive-route/","bugs":{"url":"https://github.com/MartinKolarik/ractive-route/issues/"},"dist":{"shasum":"fd2b2d874d165ee3cf95936492d0d0db3217d4fe","tarball":"https://registry.npmjs.org/ractive-route/-/ractive-route-0.3.4.tgz","integrity":"sha512-yVXsIkwE/NOfxhrYj7akCSD1p2MPyJTt7P2wq++/nw3Ai+ldLpCeZWf99rwtOUAMNRlISp+mnjTFVdhvX6ZZmw==","signatures":[{"sig":"MEQCICGCE4FQDGelxyFj9hQrRqavhIPmyaMlrAPVilWw6Gc2AiBu/3OZom5kWlUVJkZ6yGdUivWniTsdcplOPdO9asj/IA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"ractive-route.js","github":"https://github.com/MartinKolarik/ractive-route/","gitHead":"369b1b0cd316472620c05a36d95d0dd9c4c8a27e","scripts":{"test":"mocha && mocha-phantomjs test/tests.html"},"_npmUser":{"name":"martin-kolarik","email":"martin@kolarik.sk"},"repository":{"url":"git+https://github.com/MartinKolarik/ractive-route.git","type":"git"},"_npmVersion":"5.0.3","description":"Routing library for Ractive.js","directories":{},"_nodeVersion":"8.1.4","devDependencies":{"chai":"3.0.0","grunt":"0.4.5","mocha":"2.2.5","rewire":"2.3.4","ractive":"0.7.3","mocha-phantomjs":"3.5.3","grunt-contrib-uglify":"0.9.1"},"_npmOperationalInternal":{"tmp":"tmp/ractive-route-0.3.4.tgz_1503066502226_0.9012524911668152","host":"s3://npm-registry-packages"}},"0.3.5":{"name":"ractive-route","version":"0.3.5","keywords":["ractive","routing","router"],"author":{"url":"http://kolarik.sk","name":"Martin Kolárik","email":"martin@kolarik.sk"},"license":"MIT","_id":"ractive-route@0.3.5","maintainers":[{"name":"martin-kolarik","email":"martin@kolarik.sk"}],"homepage":"https://github.com/MartinKolarik/ractive-route/","bugs":{"url":"https://github.com/MartinKolarik/ractive-route/issues/"},"dist":{"shasum":"5437b6cf2c4becc0e5d2d3167bfa8296da3bd34e","tarball":"https://registry.npmjs.org/ractive-route/-/ractive-route-0.3.5.tgz","integrity":"sha512-bEQNK+NGQVSjcgwlkLvsdKPyq1W6ErgyooMJfmPJYC4tpRbsdbFWXECmrf4Efe3lvBJjZWiKshBwHq6FSMdOIw==","signatures":[{"sig":"MEUCIFEV5vR/ytY3G9fbuU+qQS0ti5CMJzuyiqDbUGo5Eo+WAiEA+KBC3cLOj+Mlt10I0oeeZGZTWx9+fD+ClB7dvE1pNZc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"ractive-route.js","github":"https://github.com/MartinKolarik/ractive-route/","gitHead":"0eff6d2896d903ee07668380d189046639fe3426","scripts":{"test":"mocha && mocha-phantomjs test/tests.html"},"_npmUser":{"name":"martin-kolarik","email":"martin@kolarik.sk"},"repository":{"url":"git+https://github.com/MartinKolarik/ractive-route.git","type":"git"},"_npmVersion":"5.0.3","description":"Routing library for Ractive.js","directories":{},"_nodeVersion":"8.1.4","devDependencies":{"chai":"3.0.0","grunt":"0.4.5","mocha":"2.2.5","rewire":"2.3.4","ractive":"0.7.3","mocha-phantomjs":"3.5.3","grunt-contrib-uglify":"0.9.1"},"_npmOperationalInternal":{"tmp":"tmp/ractive-route-0.3.5.tgz_1503076011538_0.14892205107025802","host":"s3://npm-registry-packages"}},"0.3.7":{"name":"ractive-route","version":"0.3.7","keywords":["ractive","routing","router"],"author":{"url":"http://kolarik.sk","name":"Martin Kolárik","email":"martin@kolarik.sk"},"license":"MIT","_id":"ractive-route@0.3.7","maintainers":[{"name":"martin-kolarik","email":"martin@kolarik.sk"}],"homepage":"https://github.com/MartinKolarik/ractive-route/","bugs":{"url":"https://github.com/MartinKolarik/ractive-route/issues/"},"dist":{"shasum":"b94071c268609b1f01edc4004ae77046d038bf10","tarball":"https://registry.npmjs.org/ractive-route/-/ractive-route-0.3.7.tgz","integrity":"sha512-MNvOLB7w/RLB39JRHYzSl7GLxffxLlbSlDoadTU151KoKWHPfGrfo6oeft+Q3o0FZX1JZeS2TuGM4akAciir1Q==","signatures":[{"sig":"MEYCIQCzmp45i6OrrNYnVfSCzcKcfbD0DsEUrYw+5d0UmWXaygIhAJfiTqX51xHsmQkm7dypdXQUUoQlPdw+BzJX+KxiVm2V","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"ractive-route.js","github":"https://github.com/MartinKolarik/ractive-route/","gitHead":"fe49a07c8ab9751514f96ef6e87fc670a95ce96f","scripts":{"test":"mocha && mocha-phantomjs test/tests.html"},"_npmUser":{"name":"martin-kolarik","email":"martin@kolarik.sk"},"repository":{"url":"git+https://github.com/MartinKolarik/ractive-route.git","type":"git"},"_npmVersion":"5.4.2","description":"Routing library for Ractive.js","directories":{},"_nodeVersion":"8.8.1","devDependencies":{"chai":"3.0.0","grunt":"0.4.5","mocha":"2.2.5","rewire":"2.3.4","ractive":"0.7.3","phantomjs":"1.9.20","mocha-phantomjs":"3.5.3","grunt-contrib-uglify":"0.9.1"},"_npmOperationalInternal":{"tmp":"tmp/ractive-route-0.3.7.tgz_1512950929359_0.6826625859830528","host":"s3://npm-registry-packages"}},"0.3.9":{"name":"ractive-route","version":"0.3.9","keywords":["ractive","routing","router"],"author":{"url":"http://kolarik.sk","name":"Martin Kolárik","email":"martin@kolarik.sk"},"license":"MIT","_id":"ractive-route@0.3.9","maintainers":[{"name":"martin-kolarik","email":"martin@kolarik.sk"}],"homepage":"https://github.com/MartinKolarik/ractive-route/","bugs":{"url":"https://github.com/MartinKolarik/ractive-route/issues/"},"dist":{"shasum":"a67f33f95a1ff4332864d943caf7836b08ae427b","tarball":"https://registry.npmjs.org/ractive-route/-/ractive-route-0.3.9.tgz","fileCount":8,"integrity":"sha512-XkH5JnhKQBvYHK002GgVOqNr9P5b0rkpF5gbs+UMKHQXSPrXBgZVVmHTUelnkE8xj9LMxrBQBPDwS1vqzhs4eQ==","signatures":[{"sig":"MEUCIQCGDuj8kG1Gl+q+XFerhmiNGvmChQzGFd0+k0YJ/IhNlQIgDwqysWFfGjpsMdT+v/vcalGt+3tC1MWqKp+XSaKCLuE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbWa9lCRA9TVsSAnZWagAA6k8P/AsalvhJkctbxE1R2avH\nSRjKXjKFdpgv+np259P+t+hmMAO2Sks/iFiq99qV4wYRrIqHgH72DtYKut7Z\nMgY/PxfQGHUjl/BHozqjPXepw/+jKHuBbc1i6uDK14ms78rlrYttW3SXCCUb\nFe4TmleTI8CZLuhdpT/BulkEcjeoz+7URqaDiWeYfGHO1Agsg6dJSpyV51K/\nEjd5W0kuitsl4TYiDDR3IkqzUTjLC3a1fiHQwXvlR8J02P+NgdfKmpzLlmdX\nj0q5iOqhJfrZLL3yWTaEQWxit3iB2/6RemzN1oQucM2Uw4YQ8xd6+BxwMYLU\nCFsKBdSz8OlkW2p5N1UFUYgAQwjkAVCqpcL0GNqwh2FxKXJubCg1Gy9HuAbz\nWBKZ2IBpOWZ9RdXR7Eo9Rt3a9cxA99F5WRWm+S9ziwbENwkw/x3JbzTsm5tx\n5dUsJ+aLQ+V6S2azKqj8S7kGF1SdE12lodxVWWJEyAb3MmvKx94prDGlGt2b\nCcWza1EtCTsRWzOGy06u6swqCLfI1rFdUyx73W7ZeCPtu+i0AnlvE7BjF7v3\n3hjcD8/WqPr8EHnSW4uQPj0zVm5x9R06SpgElBhEODCgLA5TVcxsRavQWtht\n5OGsuWBan+9srTY9bCMSAO7HQGSLrZJKghQ4lN97CDGcqhu4ZILr8SWVJtnJ\nSH0t\r\n=A1bk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"ractive-route.js","github":"https://github.com/MartinKolarik/ractive-route/","gitHead":"e29e7f3e178c00ed95fe84e66d00d5f3ec347e66","scripts":{"test":"mocha && mocha-phantomjs test/tests.html"},"_npmUser":{"name":"martin-kolarik","email":"martin@kolarik.sk"},"repository":{"url":"git+https://github.com/MartinKolarik/ractive-route.git","type":"git"},"_npmVersion":"5.6.0","description":"Routing library for Ractive.js","directories":{},"_nodeVersion":"8.11.3","_hasShrinkwrap":false,"devDependencies":{"chai":"3.0.0","grunt":"0.4.5","mocha":"2.2.5","rewire":"2.3.4","ractive":"0.7.3","phantomjs":"1.9.20","mocha-phantomjs":"3.5.3","grunt-contrib-uglify":"0.9.1"},"_npmOperationalInternal":{"tmp":"tmp/ractive-route_0.3.9_1532604261141_0.6528186207401194","host":"s3://npm-registry-packages"}},"0.3.10":{"name":"ractive-route","version":"0.3.10","keywords":["ractive","routing","router"],"author":{"url":"http://kolarik.sk","name":"Martin Kolárik","email":"martin@kolarik.sk"},"license":"MIT","_id":"ractive-route@0.3.10","maintainers":[{"name":"martin-kolarik","email":"martin@kolarik.sk"}],"homepage":"https://github.com/MartinKolarik/ractive-route/","bugs":{"url":"https://github.com/MartinKolarik/ractive-route/issues/"},"dist":{"shasum":"d17ebd015b737c7adb88daae9b1fdf3669185363","tarball":"https://registry.npmjs.org/ractive-route/-/ractive-route-0.3.10.tgz","fileCount":8,"integrity":"sha512-A5dhFmn1gGYDh3KN2BY1BFMrNLAqQm7IBAD52ArKZcRMVpdB3Yx30A1K/GQQCfwTb8KrmNNXia5eIWTSCy/Drw==","signatures":[{"sig":"MEUCIQCLP8chngqrtHFplBNIxiHvg94iB8/vYapcGzFBf0VTugIgOFwAZkf1lNNqmoiKvk0Jz1IHRXv70wScUi4QQ6rDtRQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40487},"main":"ractive-route.js","github":"https://github.com/MartinKolarik/ractive-route/","gitHead":"b00fb59c018b18153a47bb27ba0cb3d65d2b7d2d","scripts":{"test":"mocha && mocha-phantomjs test/tests.html"},"_npmUser":{"name":"martin-kolarik","email":"martin@kolarik.sk"},"repository":{"url":"git+https://github.com/MartinKolarik/ractive-route.git","type":"git"},"_npmVersion":"9.6.7","description":"Routing library for Ractive.js","directories":{},"_nodeVersion":"18.17.0","_hasShrinkwrap":false,"devDependencies":{"chai":"3.0.0","grunt":"0.4.5","mocha":"2.2.5","rewire":"2.3.4","ractive":"0.7.3","phantomjs":"1.9.20","mocha-phantomjs":"3.5.3","grunt-contrib-uglify":"0.9.1"},"_npmOperationalInternal":{"tmp":"tmp/ractive-route_0.3.10_1690669199236_0.9237406849914611","host":"s3://npm-registry-packages"}},"0.3.11":{"name":"ractive-route","version":"0.3.11","keywords":["ractive","routing","router"],"author":{"url":"https://kolarik.sk","name":"Martin Kolárik","email":"martin@kolarik.sk"},"license":"MIT","_id":"ractive-route@0.3.11","maintainers":[{"name":"martin-kolarik","email":"martin@kolarik.sk"}],"homepage":"https://github.com/MartinKolarik/ractive-route/","bugs":{"url":"https://github.com/MartinKolarik/ractive-route/issues/"},"dist":{"shasum":"e86fcde4f1fb92ce601b4673c0c878a364605381","tarball":"https://registry.npmjs.org/ractive-route/-/ractive-route-0.3.11.tgz","fileCount":8,"integrity":"sha512-EM9LLbokEluDh2TgaxeLWFUjdNygbDbsX3xiaJ5lf3lpuyznA/+ITBBgWHgsX9dTTRd8YvBRMP53D0FU7AcFkQ==","signatures":[{"sig":"MEQCIGNV3mUilxWejnV0M61jHu53cgZHRqLYJbozWN5oMJTuAiAkZprx/x1Xw7Blw5Npvnr8M1oUxTNGlb6bFphxB+9zUQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40729},"main":"ractive-route.js","github":"https://github.com/MartinKolarik/ractive-route/","gitHead":"571aa6d81b807ac747187fcc5d5888f18ef28f45","scripts":{"test":"mocha && mocha-phantomjs test/tests.html"},"_npmUser":{"name":"martin-kolarik","email":"martin@kolarik.sk"},"repository":{"url":"git+https://github.com/MartinKolarik/ractive-route.git","type":"git"},"_npmVersion":"9.6.7","description":"Routing library for Ractive.js","directories":{},"_nodeVersion":"18.17.0","_hasShrinkwrap":false,"devDependencies":{"chai":"3.0.0","grunt":"0.4.5","mocha":"2.2.5","rewire":"2.3.4","ractive":"0.7.3","phantomjs":"1.9.20","mocha-phantomjs":"3.5.3","grunt-contrib-uglify":"0.9.1"},"_npmOperationalInternal":{"tmp":"tmp/ractive-route_0.3.11_1699995939170_0.14712637427564257","host":"s3://npm-registry-packages"}},"0.3.12":{"name":"ractive-route","version":"0.3.12","keywords":["ractive","routing","router"],"author":{"url":"https://kolarik.sk","name":"Martin Kolárik","email":"martin@kolarik.sk"},"license":"MIT","_id":"ractive-route@0.3.12","maintainers":[{"name":"martin-kolarik","email":"martin@kolarik.sk"}],"homepage":"https://github.com/MartinKolarik/ractive-route/","bugs":{"url":"https://github.com/MartinKolarik/ractive-route/issues/"},"dist":{"shasum":"970a594068dda08f5bdd996eb51212d8f1a62855","tarball":"https://registry.npmjs.org/ractive-route/-/ractive-route-0.3.12.tgz","fileCount":12,"integrity":"sha512-HEsKLWBKwIvtC6a32+cAFDeBpBOPCW4UXmhfy36JvucBP3HlenBWK3j3IuHpYfGXq1PnFkH/2+s4IaBNtlPJiA==","signatures":[{"sig":"MEUCIQDdtmOTCj1fCzE+cdI9MNDn6dgEmyFkWSBtJG6i3oE07AIgEptFI7YRrhHRb2iXZLNwfHqaZjcoRdQBlUYmskJBdrc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":93604},"main":"ractive-route.js","github":"https://github.com/MartinKolarik/ractive-route/","module":"ractive-route.mjs","gitHead":"13aca737b2d55cf03fcb7eac71d39b416c81d5a9","scripts":{"test":"mocha && mocha-phantomjs test/tests.html","build":"grunt"},"_npmUser":{"name":"martin-kolarik","email":"martin@kolarik.sk"},"repository":{"url":"git+https://github.com/MartinKolarik/ractive-route.git","type":"git"},"_npmVersion":"11.4.2","description":"Routing library for Ractive.js","directories":{},"_nodeVersion":"24.1.0","_hasShrinkwrap":false,"devDependencies":{"chai":"3.0.0","grunt":"0.4.5","mocha":"2.2.5","rewire":"2.3.4","ractive":"0.7.3","grunt-cli":"^1.5.0","phantomjs":"1.9.20","mocha-phantomjs":"3.5.3","grunt-contrib-uglify":"5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/ractive-route_0.3.12_1763983455888_0.3598128518920358","host":"s3://npm-registry-packages-npm-production"}},"0.3.13":{"name":"ractive-route","version":"0.3.13","description":"Routing library for Ractive.js","homepage":"https://github.com/MartinKolarik/ractive-route/","github":"https://github.com/MartinKolarik/ractive-route/","main":"ractive-route.js","module":"ractive-route.mjs","keywords":["ractive","routing","router"],"author":{"name":"Martin Kolárik","email":"martin@kolarik.sk","url":"https://kolarik.sk"},"license":"MIT","devDependencies":{"chai":"3.0.0","grunt":"0.4.5","grunt-cli":"^1.5.0","grunt-contrib-uglify":"5.2.2","mocha":"2.2.5","mocha-phantomjs":"3.5.3","phantomjs":"1.9.20","ractive":"0.7.3","rewire":"2.3.4"},"scripts":{"build":"grunt","test":"mocha && mocha-phantomjs test/tests.html"},"repository":{"type":"git","url":"git+https://github.com/MartinKolarik/ractive-route.git"},"bugs":{"url":"https://github.com/MartinKolarik/ractive-route/issues/"},"_id":"ractive-route@0.3.13","gitHead":"919f170f44d43f55b688d7f0e2bb38b5de251596","_nodeVersion":"22.15.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-oBJkHhFNv2yacuS43s1GLrVtoc4ZMOLnSn2a/roY4eE4lVtxPwQd3m3ng4/wKRaJIkDRF5A2h+ry80Xogvjunw==","shasum":"531231e0fb8934e8241dbd03f9ab7558af5e950c","tarball":"https://registry.npmjs.org/ractive-route/-/ractive-route-0.3.13.tgz","fileCount":12,"unpackedSize":94562,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDqmhpOE9+CUcoLwf/rIgF85nHcKIO1xCr8hxu2oBRdXQIgdtd4o6TnwW2wpmuaRtfDqxu3lcgMiOyTUk4/ZrWRV8g="}]},"_npmUser":{"name":"martin-kolarik","email":"martin@kolarik.sk"},"directories":{},"maintainers":[{"name":"martin-kolarik","email":"martin@kolarik.sk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ractive-route_0.3.13_1773915644261_0.5898145032313893"},"_hasShrinkwrap":false}},"time":{"created":"2017-08-18T14:21:18.250Z","modified":"2026-03-19T10:20:44.516Z","0.3.3":"2017-08-18T14:21:18.250Z","0.3.4":"2017-08-18T14:28:23.499Z","0.3.5":"2017-08-18T17:06:52.925Z","0.3.6":"2017-12-10T23:54:51.489Z","0.3.7":"2017-12-11T00:08:49.512Z","0.3.8":"2018-07-26T11:21:48.696Z","0.3.9":"2018-07-26T11:24:21.244Z","0.3.10":"2023-07-29T22:19:59.397Z","0.3.11":"2023-11-14T21:05:39.345Z","0.3.12":"2025-11-24T11:24:16.085Z","0.3.13":"2026-03-19T10:20:44.414Z"},"bugs":{"url":"https://github.com/MartinKolarik/ractive-route/issues/"},"author":{"name":"Martin Kolárik","email":"martin@kolarik.sk","url":"https://kolarik.sk"},"license":"MIT","homepage":"https://github.com/MartinKolarik/ractive-route/","keywords":["ractive","routing","router"],"repository":{"type":"git","url":"git+https://github.com/MartinKolarik/ractive-route.git"},"description":"Routing library for Ractive.js","maintainers":[{"name":"martin-kolarik","email":"martin@kolarik.sk"}],"readme":"# ractive-route\n\nSimple routing library for Ractive.js with support for two way (model <-> URI) data binding.\n\n[See it in action!](http://rawgit.com/MartinKolarik/ractive-route/master/demo/index.html) ([source](https://github.com/MartinKolarik/ractive-route/tree/master/demo))\n\n## Get started\n\n```\nhttps://cdn.jsdelivr.net/npm/ractive-route@0.3.7/ractive-route.min.js\n```\n\nractive-route will always expose itself as `Ractive.Router`. Additionally, you can load it using AMD or CommonJS module loader.\n\n## API\n\n### new Router(options)\n\n**options** `Object`:\n\n**el** `HTMLElement|string|jQuery-like collection`\n\n`el` that will be passed to your Ractive components.\n\n**data** `function`\n\nA function that will be invoked every time a new component is created and the returned data will be passed to your component.\n\n**basePath** `string` (default: `''`)\n\nPath to your application.\n\n**history** `Object` (default: `window.history`)\n\nCustom History API to use. It has to implement `pushState()` and `replaceState()` methods.\n\n**strictMode** `boolean` (default: `false`)\n\nIf set to `false`, URLs are case insensitive and starting and trailing slashes are ignored.\n\n**reloadOnClick** `boolean` (default: `false`)\n\nIf set to `true`, clicking on a link will always force a `dispatch()`.\n\n### addRoute(pattern, Handler[, observe])\n\n**pattern** `string`\n\nCan contain required or optional variables:\n\n```\n/users/:id/ - required\n/users/:id?/ - optional\n```\n\nBy default, every variable will match anything except `/`. You can specify a pattern for each variable if you want:\n\n```\n/users/:id(\\d+)/\n/users/:id(\\d+)?/\n```\n\n**Handler** `function`\n\nRactive component or function to handle the requests.\n\n**Observe** `Object`\n\nThis object can contain one or more of the following properties:\n\n- `qs` - a list of keys that will be observed and synced with query string.\n- `hash` - a list of keys that will be observed and synced with hash.\n- `state` - a list of keys that will be observed and synced with the History API.\n\n### dispatch(request[, options])\n\nDispatch the `request` to the first `route` matching the `request`. If there is no such route, redirect to the requested URI.\n\n**request** `string`\n\nEither a relative or an absolute URI.\n\n**options** `Object`:\n\n**reload** `boolean` (default: `false`)\n\nIf set to `false`, then the request will be dispatched only if there is a difference between the new and the current URI.\n\n**noHistory** `boolean` (default: `false`)\n\nIf set to `false`, then `replaceState()` will be used instead of `pushState()`.\n\n**qs** `Object`\n\nAdditional query string data. These two lines will do exactly the same:\n\n```js\nrouter.dispatch('/users/123/?search=a');\nrouter.dispatch('/users/123/', { qs: { search: 'a' } });\n```\n\n**hash** `Object`\n\nAdditional hash data. These two lines will do exactly the same:\n\n```js\nrouter.dispatch('/users/123#!{\"search\":\"a\"}');\nrouter.dispatch('/users/123/', { hash: { search: 'a' } });\n```\n\n**state** `Object`\n\nState data that will be passed to `pushState()` function.\n\n### getUri()\n\nReturns a current URI relative to `basePath`.\n\n### init(options)\n\nA shorthand for:\n\n```js\nrouter.dispatch(router.getUri(), { noHistory: true });\n```\n\n### match(request)\n\nReturns a first `route` matching the `request` or `null`.\n\n### watchLinks([pattern])\n\nWatch all links that don't have `router-ignore` class and match the `pattern` and perform `dispatch()` on `click`. The default `pattern` matches all internal links.\n\n**pattern** `RegExp` (default: `new RegExp('^((https?:)?\\\\/\\\\/' + location.hostname.replace(/\\./g, '\\\\.') + '.*|((?!\\\\/\\\\/)[^:]+))$');`)\n\n### unwatchLinks()\n\nStop listening to `click` events.\n\n### watchState()\n\nPerform `dispatch()` on `popstate`.\n\n### unwatchState()\n\nStop listening to `popstate` events.\n\n## License\nCopyright (c) 2014 - 2017 Martin Kolárik. Released under the MIT license.\n","readmeFilename":"README.md"}