bloom-html 0.1.3

Provides the HtmlNode type for bloom-client and bloom-server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Some basic html tags
use crate::{element::HtmlElementBuilder, HtmlNode};

pub fn div() -> HtmlElementBuilder<&'static str> {
    HtmlNode::element("div")
}

pub fn span() -> HtmlElementBuilder<&'static str> {
    HtmlNode::element("span")
}

pub fn button() -> HtmlElementBuilder<&'static str> {
    HtmlNode::element("button")
}

pub fn script() -> HtmlElementBuilder<&'static str> {
    HtmlNode::element("script")
}