Merge pull request #106 from damienegan/patch-1

Update 02-routing.md
This commit is contained in:
Ryan Haskell-Glatz 2021-08-24 10:29:06 -05:00 committed by GitHub
commit 9f68ed7592
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
__Next up:__ [Pages](./03-pages)