The map
Every Puzzle app has the same shape, and this is it: the files puzzle init just wrote. Click through them in the file tree. Only views/Home.pzl is yours to edit in this lesson; the lock marks the rest.
app/app.jscreates the app and mounts it on the page.app/routes.jsmaps each URL to a view.app/layouts/holds the chrome that wraps your pages.Default.pzldraws the header and footer.app/views/holds the pages themselves.Home.pzlis/, andNotFound.pzlcatches everything else.app/components/holds the pieces pages are built from, like theCounter.app/public/is served as it is.index.htmlis the shell the app mounts into.app/styles/andapp/assets/hold the stylesheet and the icons a template inlines.puzzle.config.jsconfigures the build. The scaffold turns Tailwind on.
Chapter 4 adds app/models/ beside them.
Your turn
- Open
app/views/Home.pzl. - Find
headingindata()and change'Welcome to Puzzle'to'Music'. The preview updates as you type.