diff --git a/docs/mithril.route.md b/docs/mithril.route.md index b32abdf6..fb3b50ee 100644 --- a/docs/mithril.route.md +++ b/docs/mithril.route.md @@ -73,7 +73,7 @@ m.route(document.body, "/dashboard/johndoe", { This redirects to the URL `http://server/#/dashboard/johndoe` and yields: ```markup -johndoe +
johndoe
``` Above, `dashboard` is a module. It contains a `controller` and a `view` properties. When the URL matches a route, the respective module's controller is instantiated and passed as a parameter to the view.