gliew

Types

pub opaque type Event

Functions

pub fn mount(mount mount: fn(a) -> Subject(b), with context: a, render render: fn(
    Option(b),
  ) -> Node(Event)) -> Node(Event)

Creates a HTML node tree that will be mounted and receive live updates with data on Subject(a) returned by the mount function.

pub fn serve(port: Int, handler: fn(Request(Body)) -> Node(Event)) -> Result(
  Nil,
  StartError,
)
Search Document