[][src]Crate moxie_dom

Tools for declaratively constructing and incrementally updating HTML DOM trees on the web. Based on the moxie UI runtime.

Modules

elements

Element definitions generated from the listing on MDN. Because topologically-nested functions are called-by-macro today, the element macros generated here appear in the root module.

embed

Embedding APIs offering finer-grained control over execution of the runtime.

prelude

A module for glob-importing the most commonly used moxie-dom items.

Structs

MemoElement

A topologically-nested "incremental smart pointer" for an HTML element.

Functions

boot

The "boot sequence" for a moxie-dom instance creates a crate::embed::WebRuntime with the provided arguments and begins scheduling its execution with requestAnimationFrame on state changes.

element

Create and mount an HTML element. Called from the individual element macros, which in turn are normally called by the output of the moxie::mox! macro.

render_html

Runs the provided closure once and produces a prettified HTML string from the contents.

text

Create and mount a DOM text node. This is normally called by the moxie::mox! macro.