AttrEngine.Schema.BlockType (attr_engine v0.2.2)

Copy Markdown View Source

Defines a renderable block shape: handle + template + AttributeSet.

A BlockType binds an AttributeSet (the data shape) to a template (the rendering instructions). The template can be a Mustache string, a component reference, or nil for programmatic rendering.

Examples

  • CMS: heading_block → AttributeSet with title/subtitle/intro + Mustache template
  • ArtistCircle: piece → AttributeSet with work/legend/audio + JS animation envelope

Summary

Functions

changeset(block_type, attrs)