Module silkenweb::dom

source ·
Expand description

An abstraction for the underlying DOM.

An application, or parts of an application, can be parameterized on the underlying DOM type so it can be rendered in different ways:

  • Server side rendering with Dry
  • Client side rendering with Wet
  • Hydrating a server side rendered initial application state with Hydro
  • As a template, or part of a template, with Template

See the concrete DOM types for some examples.

Structs§

  • A DOM that can only be rendered on the server
  • A DOM that can be rendered on the client or hydrated onto an existing DOM element.
  • A template DOM that can be used to instantiate other DOM types by cloning.
  • A DOM that can only be rendered on the client.

Traits§

Type Aliases§

  • The default DOM for the current platform.