Clone in a terminal:
Commit aab1daf
Johan Mattsson - 2026-03-03T18:38:08+00:00
aab1daf2de68465aadde6f9718150daf17b163aejohan.mattsson.m@gmail.com

Fix example code

Changed files (1)

Diff

diff --git a/README.md b/README.mdindex c28e262..8e8c399 100644--- a/README.md+++ b/README.md@@ -45,6 +45,7 @@ Expressions are also automatically escaped.  ```rust use kaja_html_macro::html;+ fn get_value() -> String {     "42".to_string() }@@ -80,7 +81,7 @@ fn parent() -> String { }  fn child_component_simple_loop() -> String {-    html! {{+    let content = html! {{         <h1>Hello From Nested Component</h1>          <div>@@ -96,7 +97,8 @@ fn child_component_simple_loop() -> String {                 </rust>             </ul>         </div>-    }}+    }};+    content } ``` 

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112