toph 0.10.0

An HTML generation library
Documentation

Toph

Toph is an HTML generation library. It's implemented as a declarative macro, html!, that transforms your markup into imperative code to build up an HTML tree. This tree can then be converted to a string.

Documentation Crates.io

use toph::html;

let _ = html! {
    doctype {}
    html {
        title {
            "hello world";
        }
    }
    body {
        p[class: "intro"] {
            "This is an example of the ";
            a[href: "https://github.com/eze-works/toph"] {
                " template language";
            }
        }
    }
};