7 releases

0.1.6 Jun 7, 2024
0.1.5 May 29, 2024

#989 in Text processing

Download history 313/week @ 2024-05-13 28/week @ 2024-05-20 372/week @ 2024-05-27 152/week @ 2024-06-03

865 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