Expand description

This is a type-safe HTML generator.

Example

let doc = html(&|h| {
    h.head(&|head| {
        head.title("Hello world!");
    });
});
assert_eq!(doc, "<!DOCTYPE html><html><head><title>Hello world!</title></head></html>")

Traits

The type-safe interface for the <body> tag.

The type-safe interface for the <head> tag.

The type-safe interface for the <html> tag.

Functions

If you just need a <body> tag, use this function.

If you just need a <head> tag, use this function.

The main entry point for HTML generation.