Clone in a terminal:
Commit 5207534
Johan Mattsson - 2026-03-06T18:18:50+00:00
5207534e7e14af3ff9e57f53b97598df288ce5f6johan.mattsson.m@gmail.com

Struct example

Changed files (1)

Diff

diff --git a/README.md b/README.mdindex 924f583..11a14cf 100644--- a/README.md+++ b/README.md@@ -121,6 +121,26 @@ let html = html! {{ }}; ``` +# Printing Struct Fields++```rust+use kaja_html_macro::html;++struct TestInfo {+    id: u64,+}++let info = TestInfo {+    id: 42,+};++let html = html! {{+    <div>+        <p>ID: $(info.id)</p>+    </div>+}};+```+ ## Author and Contact - Written by Johan Mattsson - johan.mattsson.m@gmail.com

Contact

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