Clone in a terminal:
Commit 44732b3
Johan Mattsson - 2026-03-03T17:44:10+00:00
44732b3ec6dc32e7a675d4abf8677aaefde23b5djohan.mattsson.m@gmail.com

Fix example in readme

Changed files (1)

Diff

diff --git a/README.md b/README.mdindex 3d55fbc..52473e0 100644--- a/README.md+++ b/README.md@@ -71,11 +71,12 @@ Use `<include />` to insert HTML content from another component. use htmlmacro::html;  fn parent() -> String {-    html! {{+    let content = html! {{         <div>             <include child_component_simple_loop() />         </div>     }}+    content }  fn child_component_simple_loop() -> String {@@ -102,14 +103,16 @@ fn child_component_simple_loop() -> String { ## Output  ```html-<h1>Hello From Nested Component</h1>- <div>-    <ul>-        <li>Simple list item 1</li>-        <li>Simple list item 2</li>-        <li>Simple list item 3</li>-    </ul>+    <h1>Hello From Nested Component</h1>+    +    <div>+        <ul>+            <li>Simple list item 1</li>+            <li>Simple list item 2</li>+            <li>Simple list item 3</li>+        </ul>+    </div> </div> ``` 

Contact

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