Crate rhtml

Source
Expand description

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();

Macros§

html

Structs§

HtmlBuilder
Html Builder
HtmlNode
Html Node