espresso/html
Experimental module used to render functions into an io list and turn that list into a string
This module is experimental and may change or be removed
Types
pub type Attributes =
List(#(String, String))
Functions
pub fn a(el: Element, name: String, value: String) -> Element
Adds an attribute of name+value to an HTML element
pub fn new(tag_name: String, attributes: List(#(String, String)), children: List(
Element,
)) -> Element
pub fn to_string(dom: Element) -> String
Renders an HTML element into a string of HTML
Examples