Skip to content

Commit

Permalink
docs: fixed typo (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
adundovi authored Oct 9, 2023
1 parent 9b8fcb5 commit 94cc497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/next/en-US/first-app/generating-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct PostState {
}
```

When you plug *state* into a matching *template*, you can create a *page*. **Template + state = page**, in other words. Perseus has some convenient ways to do this: you'll usually declare an `async` function that produces a `Vec` of all the paths you want to generate (e.g. for a blog it might enumerate all the `.md` files in a directory), and then another function that goes through each of those paths one-by-one and generates their state (e.g. fora blog it might read the contents of each file). Once you've generated the state, Perseus does the boring work of fitting it all together, and it prerenders your pages to HTML at build-time so they can be served to clients as quickly as possible.
When you plug *state* into a matching *template*, you can create a *page*. **Template + state = page**, in other words. Perseus has some convenient ways to do this: you'll usually declare an `async` function that produces a `Vec` of all the paths you want to generate (e.g. for a blog it might enumerate all the `.md` files in a directory), and then another function that goes through each of those paths one-by-one and generates their state (e.g. for a blog it might read the contents of each file). Once you've generated the state, Perseus does the boring work of fitting it all together, and it prerenders your pages to HTML at build-time so they can be served to clients as quickly as possible.

## A simple greeting

Expand Down

0 comments on commit 94cc497

Please sign in to comment.