Module sycamore::generic_node
Expand description
Generic rendering backend.
Structs§
- Info extracted from a dynamic marker in a template.
- Options for
instantiate_template_universal
. - A template that can be instantiated.
- An unique identifier for an instantiated template.
- Result of a template instantiation.
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 inview!
. - 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.