VNDB fork of mithril.js
m.route now parses query string in given path into m.route.param
* Params gathered the old way (e.g. /test/:id) overwrite params from the query string
* /?valid => m.route.param('valid') === true
* /?blank= => in m.route.param('blank') === ''
* Supports nested values: ?test[a][b]=1&test[a][b]=2 => m.route.param('a') == {b: "1", c: "2"}
The nested values where only added to behave similar to the encoding function querystring in mithril. Maybe this is not necessary? Code could be shorter.
|
||
|---|---|---|
| archive | ||
| deploy | ||
| docs | ||
| tests | ||
| .gitignore | ||
| .travis.yml | ||
| background.html | ||
| chain.html | ||
| gnimmelf.html | ||
| Gruntfile.js | ||
| LICENSE | ||
| mithril.d.ts | ||
| mithril.js | ||
| package.json | ||
| README.md | ||
Mithril
A Javascript Framework for Building Brilliant Applications
See the website for documentation
There's also a blog and a mailing list