Skip to content

Commit

Permalink
docs: fixed misnomer in second app tutorial
Browse files Browse the repository at this point in the history
Closes #147.
  • Loading branch information
arctic-hen7 committed Jun 8, 2022
1 parent dbe8207 commit 873562c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/0.3.4/en-US/tutorials/second-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ If that all went over your head, don't worry, that's just what Perseus does behi

This is just the equivalent of `.template()` for the `head()` function, and it does basically the exact same thing. The only particular thing of note here is that the properties this expects are again as an `Option<String>`, and those are deserialized automatically by the `#[perseus::head]` macro that we used on `head()` earlier.

### `get_build_props()`
### `get_build_state()`

This function is part of Perseus' secret sauce (actually _open_ sauce), and it will be called when the CLI builds your app to create properties that the template will take (it expects a string, hence the serialization). Here, we just hard-code a greeting in to be used, but the real power of this comes when you start using the fact that this function is `async`. You might query a database to get a list of blog posts, or pull in a Markdown documentation page and parse it, the possibilities are endless!

Expand Down
2 changes: 1 addition & 1 deletion docs/0.4.x/en-US/tutorials/second-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ If that all went over your head, don't worry, that's just what Perseus does behi

This is just the equivalent of `.template()` for the `head()` function, and it does basically the exact same thing. The only particular thing of note here is that the properties this expects are again as an `Option<String>`, and those are deserialized automatically by the `#[perseus::head]` macro that we used on `head()` earlier.

### `get_build_props()`
### `get_build_state()`

This function is part of Perseus' secret sauce (actually _open_ sauce), and it will be called when the CLI builds your app to create properties that the template will take (it expects a string, hence the serialization). Here, we just hard-code a greeting in to be used, but the real power of this comes when you start using the fact that this function is `async`. You might query a database to get a list of blog posts, or pull in a Markdown documentation page and parse it, the possibilities are endless!

Expand Down
2 changes: 1 addition & 1 deletion docs/next/en-US/tutorials/second-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ If that all went over your head, don't worry, that's just what Perseus does behi

This is just the equivalent of `.template()` for the `head()` function, and it does basically the exact same thing. The only particular thing of note here is that the properties this expects are again as an `Option<String>`, and those are deserialized automatically by the `#[perseus::head]` macro that we used on `head()` earlier.

### `get_build_props()`
### `get_build_state()`

This function is part of Perseus' secret sauce (actually _open_ sauce), and it will be called when the CLI builds your app to create properties that the template will take (it expects a string, hence the serialization). Here, we just hard-code a greeting in to be used, but the real power of this comes when you start using the fact that this function is `async`. You might query a database to get a list of blog posts, or pull in a Markdown documentation page and parse it, the possibilities are endless!

Expand Down

0 comments on commit 873562c

Please sign in to comment.