3.7. Instructions
3.7.16. opt:put
3.7.15. opt:prolog
« Previous
3.7.17. opt:repeat
Next »

3.7.16. opt:put

Puts an OPT expression in the specified place. It has the similar meaning to the standard curly bracket syntax.

Name Type Required? Description
value Expr. with assign. Yes The expression to be evaluated.

The following lines perform exactly the same task:

Text {$variable} Text
Text <opt:put value="$variable" /> Text

Because opt:put is an instruction, it can be combined with other instructions. An example:

<opt:put value="$section.item" opt:section="section" separator=" | " />

It can generate a sequence like this:

Foo | Bar | Joe
3.7.16. opt:put
3.7. Instructions
« Previous
3.7.15. opt:prolog
Next »
3.7.17. opt:repeat