Module sauron_core::html

source ·
Expand description

Provides functions and macros to build html elements

Re-exports§

Modules§

  • Create html attributes
  • Provides list of HTML and SVG tags, style properties
  • provides functionalities and macro for building html elements
  • provides function and macro for html units such as px, %, em, etc.

Functions§

  • create a comment node
  • create a doctype
  • fragment is a list of nodes
  • Creates an html element with the element tag name and namespace This is specifically used for creating svg element where a namespace is needed, otherwise the browser will not render it correctly.
  • evaluate the fn_node only if flag is true and return the evaluated Node
  • create a node which contains a list of nodes
  • Create html entities such as   &gt
  • Create a text node element
  • A help function which render the view when the condition is met, otherwise just display a span(vec![], vec![])