1 unstable release
new 0.1.0 | Nov 2, 2024 |
---|
#168 in Template engine
38KB
852 lines
gen-html
gen-html
is a library for generating HTML from Rust code.
Example
use gen_html::{content::h1, inline_text::a, text_content::{div, p}};
let html = div((
h1("This is a title"),
p("Some paragraph"),
p(("You can put <a> inside <p> ", a("click me").href("https://some-url.com")))
));
Dependencies
~0.5–1MB
~23K SLoC