From fce4bea2180135ab2e23029df6b7359050451fb9 Mon Sep 17 00:00:00 2001 From: Stephan Date: Sat, 4 Jun 2022 23:58:33 +0200 Subject: [PATCH] terminal commands stateful pages docs --- docs/public/content/guide/03-pages.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/public/content/guide/03-pages.md b/docs/public/content/guide/03-pages.md index 643a597..21dd5ac 100644 --- a/docs/public/content/guide/03-pages.md +++ b/docs/public/content/guide/03-pages.md @@ -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.