html_dsl/types/html/lists
Types
Functions
pub fn add(
root: List,
attributes attributes: Option(Attribute),
inner inner: String,
) -> List
This creates a string that represents a list item element
@paramroot: The list element@paramattributes: The attributes of the element@paraminner: The inner content of the element@returns: A ListItem
pub fn end(li: List) -> String
Closes the element
@paramli: The list element@returns: A string that represents the HTML element
pub fn li_to_string(li: List) -> String
This creates a string that represents a list element
@paramli: The list element@returns: A string that represents the HTML element
pub fn ol(attributes attributes: Option(Attribute)) -> List
This creates a string that represents an ordered list element
@paramattributes: The attributes of the element@returns: A string that represents the HTML element