Clone in a terminal:
main.rs
test-fail-messages/variable/ - Rename project to kaja-html-macro
use kaja_html_macro::html; fn main() { // missing variable does_not_exist let html = html! {{ <html> <body> $does_not_exist </body> </html> }}; }

File history (2 commits)

5666609 Johan Mattsson - johan.mattsson.m@gmail.com
Rename project to kaja-html-macro
Rename project to kaja-html-macro
c95af61 Johan Mattsson - johan.mattsson.m@gmail.com
HTML macro for Rust projects
HTML macro for Rust projects

This is a macro that creates a Rust String from an HTML block.

Example:
let content = html!{{ <html></html> }}

Created by Johan Mattsson for Kajacode.

Contact

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