simple_html 0.1.0

A simple way to create HTML pages using Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# simple_html
This crate provides an API for building HTML pages using rust.

# Usage
```rust
use simple_html::{Element, Tag, SimpleHtml};
let header = Element::new(Tag::Header1).with_child("Header Text");
let generated_header = header.to_html(0); // 'to_html' takes the indent depth as the first argument
assert_eq!(generated_header, concat!(
    "<h1>\n",
    "  Header Text",
    "\n</h1>"
));
```