Blocks & logic
Use blocks and conditional logic in templates.
Blocks & logic
Blocks are composable building blocks (text, image, list, conditional). Use logic to display content conditionally.
Conditional blocks
- Add an If block to render content when a field is present or matches a value.
Loops
- Use Repeat blocks for arrays. Keep templates idempotent and avoid heavy computation in templates.
Example
Editor UI: add a Repeat block bound to items and inside place a Text block bound to items[].title.