[][src]Crate sauron_core

This is the core of sauron

Re-exports

pub use dom::*;
pub use web_sys;
pub use wasm_bindgen;
pub use mt_dom;

Modules

dom

This module provides functionalities for manipulating the actual Document Object Model in the browser

html

Provides functions and macros to build html elements

prelude

Prelude simplifies the imports from sauron This imports the necessary functions to build a basic sauron app.

svg

Provides functions and macros to build svg elements

Macros

declare_attributes

declare a function with the name corresponds to attribute name for easy usage in html elements Example:

style

a utility function for convenient styling of elements

text

creates a text node Example

Traits

Render

render node, elements to a writable buffer

Functions

diff

This is a sauron html specific functionality diff 2 nodes with attribute using &'static str instead of generic ATT

Type Definitions

Attribute

Attribute type used in sauron where the type of the Attribute name is &'static str

AttributeKey

attribute keys

Callback

Callback where Event type is supplied

Element

Element type with tag and attribute name type set to &'static str

Event

Map the Event to DomEvent, which are browser events

Namespace

namespace type in node, which could be change to an enum

Node

A simplified version of saurdon_vdom node, where we supplied the type for the tag which is a &'static str. The missing type is now only MSG which will be supplied by the users App code.

Patch

Patch as result of diffing the current_vdom and the new vdom. The tag and attribute name types is set to &'static str

Tag

tags are using static str for now, can also be enum tags