Skip to content

Doc update for stateful pages #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/public/content/guide/03-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,21 @@ You might have noticed `Page.static` earlier in our page function. This is one o

The rest of this section will introduce you to the other __page types__ exposed by the `Page` module, so you know which one to reach for.

Don't forget to run the command
```terminal
elm-spa gen
```
to generate the modules needed for the existing code.
Use
```terminal
elm-spa watch
```
or
```terminal
elm-spa server
```
to generate the modules while you are editing the files.

> Always choose the __simplest__ page type for the job– and reach for the more advanced ones when your page _really_ needs the extra features!

- __[Page.static](#pagestatic)__ - for pages that only render a view.
Expand Down