Skip to content

Commit

Permalink
docs: updated docs for index view with example
Browse files Browse the repository at this point in the history
  • Loading branch information
arctic-hen7 committed May 15, 2022
1 parent 2a89354 commit eccf137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/0.3.4/en-US/reference/index-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ In most Perseus apps, you can just ofcus on building your app's templates, and l
However, if you're using Perseus, you probably don't want to be writing HTML right? You're supposed to be using Sycamore! Well, that's completely true, and so Perseus supports creating an index view with Sycamore code! You can do this like so:

```rust
TODO example
{{#include ../../../examples/core/index_view/src/lib.rs}}
```

Note that you can also use `.index_view_str()` to provide an arbitrary HTML string to use instead of Sycamore code.
Expand Down

0 comments on commit eccf137

Please sign in to comment.