Crate silkenweb[−][src]
A library for building reactive single page web apps
Quick Start
The best way to get started is to look at the examples. You’ll need trunk to run them. For example, to run hello-world:
cd examples/hello-world
trunk serve --open
- hello-world is a minimal example
- counter is a minimal interactive example
- todomvc is an example of a simple app
For a more complete introduction, see Learning Silkenweb With Entirely Too Many Counters
Modules
accumulators | Accumulate reactive variables into a reactive total. |
element_list | Manage reactive lists of DOM elements. |
elements | All the HTML elements |
memo | Memoize functions across frames. |
signal | Signals are like variables that update their dependencies. |
Macros
clone | Clone all the identifiers supplied as arguments. |
Structs
Element | An HTML element. |
ElementBuilder | Build an HTML element. |
Traits
Builder | An HTML element builder. |
DomElement | Get a raw Javascript, non-reactive DOM element. |
Functions
after_render | Run a closure after the next render. |
mount | Mount an element on the document. |
render_updates | Render any pending updates. |
tag | An HTML element tag. |
unmount | Unmount an element. |