3.1.4 • Published 7 years ago
riot-route v3.1.4
Riot Router
Simple client-side router
The Riot Router is the minimal router implementation with such technologies:
- pushState and history API
- multiple routing groups
- replacable parser
- compatible with IE9 and higher
It started as a part of Riot.js, but now it becomes an independent library. It works with or without Riot.js.
Table of Contents
Install
We have 4 editions:
| edition | target | file | via |
|---|---|---|---|
| Standalone | <script> tag | dist/route.min.js | jsdelivr ⋅ Bower ⋅ download |
| AMD | RequireJS | dist/amd.route.min.js | jsdelivr ⋅ Bower ⋅ download |
| CommonJS | Browserify, webpack | index.js | npm |
| ES module | Rollup | lib/index.js | npm |
jsdelivr
<script src="https://cdn.jsdelivr.net/npm/riot-route@x.x.x/dist/route.min.js"></script>Note: change the part x.x.x to the version numbers what you want to use: ex. 2.5.0 or 3.0.0.
npm
$ npm install --save riot-routeBower
$ bower install --save riot-routeDownload by yourself
Usage
See also riot.js.org.
Demos
Contribute
Feel free to dive in! Open an issue or submit PRs.
$ npm installto setup$ npm run buildto build it once$ npm run watchto watch and build it continuously$ npm testto test
License
MIT (c) Muut, Inc. and other contributors
3.1.4
7 years ago
3.1.3
8 years ago
3.1.2
8 years ago
3.1.1
9 years ago
3.1.0
9 years ago
3.0.2
9 years ago
3.0.1
9 years ago
3.0.0
9 years ago
2.5.0
9 years ago
2.4.0
10 years ago
2.3.16
10 years ago
2.3.15
10 years ago
2.3.14
10 years ago
2.3.13
10 years ago
2.3.12
10 years ago
2.3.11
10 years ago
2.3.1
10 years ago
2.3.1-beta
10 years ago
2.3.0
10 years ago
2.3.0-beta.5
10 years ago
2.3.0-beta.4
10 years ago
2.3.0-beta.3
10 years ago
2.3.0-beta.2
10 years ago
2.3.0-beta
10 years ago
2.0.0-beta.2
10 years ago
2.0.0-beta
10 years ago