diff --git a/docs/change-log.md b/docs/change-log.md index 9c78f217..279fdcbf 100644 --- a/docs/change-log.md +++ b/docs/change-log.md @@ -2,6 +2,10 @@ [v0.1.12](/mithril/archive/v0.1.12) - maintenance +### News: + +- It's now possible to define [variadic routes](mithril.route.md#variadic-routes) [#70](https://github.com/lhorie/mithril.js/issues/70) + ### Bug Fixes: - Fix link location in links using `config: m.route` after redraws [#74](https://github.com/lhorie/mithril.js/issues/74) diff --git a/docs/mithril.route.md b/docs/mithril.route.md index 1425ae74..7014696f 100644 --- a/docs/mithril.route.md +++ b/docs/mithril.route.md @@ -74,7 +74,7 @@ The string `johndoe` is bound to the `:userID` parameter, which can be retrived The `m.route.mode` defines which part of the URL to use for routing. -#### "Variadic" routes +#### Variadic routes We can append an ellipsis (`...`) to the name of a route argument to allow it to match URL snippets that contain slashes: