Skip to content

Commit 7c2f931

Browse files
authored
Merge pull request #25 from togglebyte/dev
fixed broken links
2 parents f174142 + 2d15b6f commit 7c2f931

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

src/SUMMARY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@
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)

src/recipes.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
Various 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)

src/recipes/themes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Themes
2+
3+
Add recipe here...
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Routing
1+
# Routing views
22

33
Routing 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`.
1414
Pressing `a` will set the route to `"a"`, and pressing `b` will set the route to `"b"`.
1515
Any other option will set it to `"home"`.
1616

17-
```rust,ignore
17+
```rust
1818
use anathema::component::*;
1919
use anathema::prelude::*;
2020

@@ -48,7 +48,6 @@ border
4848
default: @home
4949
```
5050

51-
5251
## Setting up the runtime
5352

5453
Finally register both "home", "a" and "b" as templates.

0 commit comments

Comments
 (0)