glare

Types

pub type HtmlElement

Functions

pub fn create_render(node: Node, elem: HtmlElement) -> Nil

Mount a node to a dom element

fn content() {
  return h1([text("hello world")])
}
render(content(), bodyelement)
pub fn int(v: Int) -> Node

Wraps Int into Node

pub fn select(selector: String) -> HtmlElement

Select a dom element used for mounting to, see render

pub fn signal(v: fn() -> a) -> Node

Wrap a signal getter into Node

pub fn text(v: String) -> Node

Wraps String into Node

Search Document