Skip to content

Commit

Permalink
Merge pull request #410 from DavidDTA/add-extension
Browse files Browse the repository at this point in the history
Add `.elm` extension in docs example
  • Loading branch information
dillonkearns authored Aug 10, 2023
2 parents 731a134 + aadfea7 commit e1ee9cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/docs/content/docs/05-file-based-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ These cannot be used anywhere except for the final segment. That means no static

## Optional Dynamic Segments

`app/Route/Docs/Section__.elm` will match both `/docs/getting-started` as well as `/docs`. This is often useful when you want to treat a route as the default. You could use a static segment instead to handle `/docs` with `app/Route/Docs`. The choice depends on whether you want to use a separate Route Module to handle those routes or not. In the case of these docs, `/docs` shows the first docs page so it uses an optional segment.
`app/Route/Docs/Section__.elm` will match both `/docs/getting-started` as well as `/docs`. This is often useful when you want to treat a route as the default. You could use a static segment instead to handle `/docs` with `app/Route/Docs.elm`. The choice depends on whether you want to use a separate Route Module to handle those routes or not. In the case of these docs, `/docs` shows the first docs page so it uses an optional segment.

## Splat Routes

Expand Down

0 comments on commit e1ee9cc

Please sign in to comment.