From cb3580acd87dc83386dcf1b560037d900aa5bc95 Mon Sep 17 00:00:00 2001 From: damienegan <59734022+damienegan@users.noreply.github.com> Date: Tue, 24 Aug 2021 11:17:55 +0200 Subject: [PATCH] Update 02-routing.md Reversed the order. 'elm-spa add /aboutus' will create a file called 'Aboutus.elm'. Creating a file 'Aboutus.elm' doesn't create a route '/aboutus' --- docs/public/content/guide/02-routing.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/public/content/guide/02-routing.md b/docs/public/content/guide/02-routing.md index 7bbaeb6..5681f4b 100644 --- a/docs/public/content/guide/02-routing.md +++ b/docs/public/content/guide/02-routing.md @@ -45,9 +45,9 @@ URL | File ### Capitalization matters -Notice how the filename `AboutUs.elm` translated to `/about-us`? +Notice how the filename `AboutUs.elm` was created from the route `/about-us`? -If we named the file `Aboutus.elm` (with a lowercase "u"), then we'd have a path to `/aboutus` (without the dash between words). +If we named the path `/aboutus` (without the dash between words) then we'd have a file `Aboutus.elm` (with a lowercase "u"). > In __elm-spa__, we use "kebab-case" rather than "snake_case" as the convention for separating words. @@ -130,4 +130,4 @@ The technique of moving a file from the `.elm-spa/defaults` folder is known as " --- -__Next up:__ [Pages](./03-pages) \ No newline at end of file +__Next up:__ [Pages](./03-pages)