Module sycamore::generic_node

Expand description

Generic rendering backend.

Structs§

Enums§

  • The “shape” of the template, i.e. what the structure of the template looks like. This is basically the view with holes where the dynamic parts are and flags so that these holes can be filled in later.

Traits§

  • Abstraction over a rendering backend.
  • Extension trait for GenericNode to provide additional methods related to element creation. Not all backends need to implement this, but that means that you can only use components, not elements in view!.
  • Represents an element (i.e. div, p, etc…).

Functions§

  • Instantiate a template by creating nodes to match the template structure. Returns the root node along with a list of flagged nodes and dynamic markers.