Document definition
Blocks
Blocks are reusable components that group multiple Elements and/or other Blocks together.
They allow you to encapsulate layout patterns and logic into modular, maintainable units.
Blocks help reduce repetition and improve structure in document templates.
Characteristics
- Composable – Contain Elements and other Blocks.
- Reusable – Can be defined once and used in multiple places or documents.
- Parameterized – May accept input data (variables) to render dynamic content.
- Nestable – Blocks can be placed inside other Blocks.
What a Block Can Contain
- Elements – Text, Image, Table, Column, etc.
- Blocks – Other blocks can be nested to build more complex structures.
Example Use Cases
- A Header Block that includes a logo and company name.
- A Footer Block with page numbers and legal disclaimers.
- A Contact Info Block with name, email, and phone.