File tree Expand file tree Collapse file tree 4 files changed +10
-8
lines changed
Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 3838- [ Inputs and other components] ( ./anathema-extras.md )
3939 - [ Input] ( ./anathema-extras/input.md )
4040- [ Recipes] ( ./recipes.md )
41- - [ Routing] ( ./recipes/routing .md )
41+ * [ Routing views ] ( ./recipes/viewrouting .md )
4242 * [ Async] ( ./recipes/async.md )
43+ * [ Themes] ( ./recipes/themes.md )
Original file line number Diff line number Diff line change 22
33Various recipes for solving certain common scenarios.
44
5- * [ Routing] ( ./recipes/routing .md )
5+ * [ Routing views ] ( ./recipes/viewrouting .md )
66* [ Async] ( ./recipes/async.md )
7- * Themes (missing)
8-
7+ * [ Themes] ( ./recipes/themes.md )
Original file line number Diff line number Diff line change 1+ # Themes
2+
3+ Add recipe here...
Original file line number Diff line number Diff line change 1- # Routing
1+ # Routing views
22
33Routing can be done with a combination of state and ` switch ` .
44
5- Using a ` switc / case` in the template we can < something > router.
5+ Using a ` switch / case` in the template we can router.
66
77## Component
88
@@ -14,7 +14,7 @@ In this case a route is just a `String`.
1414Pressing ` a ` will set the route to ` "a" ` , and pressing ` b ` will set the route to ` "b" ` .
1515Any other option will set it to ` "home" ` .
1616
17- ``` rust,ignore
17+ ``` rust
1818use anathema :: component :: * ;
1919use anathema :: prelude :: * ;
2020
4848 default: @home
4949```
5050
51-
5251## Setting up the runtime
5352
5453Finally register both "home", "a" and "b" as templates.
You can’t perform that action at this time.
0 commit comments