- 3.7. Instructions
3.7.2. opt:block - 3.7.1. opt:attribute
« Previous - 3.7.3. opt:capture
Next »
3.7.2. opt:block
opt:block creates a port for custom block objects in the template. To get to know more about blocks, see this chapter.
| Name | Type | Required? | Description |
|---|---|---|---|
| from | Expression | Yes | Where to load the block object from |
| * | Expression | No | Any other tags are converted into block attributes |
The block port is a runtime instruction and the script may freely assign different block objects to the port:
<opt:block from="$block">The content controlled by the block.</opt:block>
See also:
- 3.7.2. opt:block
3.7. Instructions - « Previous
3.7.1. opt:attribute - Next »
3.7.3. opt:capture