glare

Types

pub external type HtmlElement

Functions

pub external fn int(v: Int) -> Node

Wraps Int into Node

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

Mount a node to a dom element

 fn content() {
   return h1([text("hello world")])
 }
 render(content(), bodyelement)
pub external fn select(selector: String) -> HtmlElement

Select a dom element used for mounting to, see render

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

Wrap a signal getter into Node

pub external fn text(v: String) -> Node

Wraps String into Node

Search Document