7 releases

0.1.6 Jun 7, 2024
0.1.5 May 29, 2024

#6 in #body

34 downloads per month
Used in http-srv

MIT license

8KB
166 lines

RHtml

Utilities to build HTML pages in rust


lib.rs:

This crate contains code to build Html Pages

Example

use rhtml::*;

let mut builder = HtmlBuilder::with_title("My page");
let body = builder.body();
html!("h1", {text: "Hello world!"}).append_to(body);
html!("a", {"href": "http://www.web.net"},
           {text: "My link"}).append_to(body);
let page = builder.to_string();

No runtime deps