mirror of
https://github.com/ryan-haskell/elm-spa.git
synced 2024-11-22 11:31:58 +03:00
commit
9f68ed7592
@ -45,9 +45,9 @@ URL | File
|
|||||||
|
|
||||||
### Capitalization matters
|
### 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.
|
> In __elm-spa__, we use "kebab-case" rather than "snake_case" as the convention for separating words.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user