No need for dedicated IF and FOR_EACH (and similar) tag
In generator specification it can be defined, if a tag behaves as block statement
Closing tag can be provided there also.
For example
_IF_USE_EXT_LIN_
...
_END_
... nicely can live together with a ...
_FOR_EACH_ACTION_
...
_END_
... if the _END_ tags are defined per CodeGeneratorAction
CodeGeneratorActions:
- tag:
_IF_USE_EXT_LIN_
tag_type: IF
close_tag: _END_
action_method: _is_ext_lib_used
- tag:
_FOR_EACH_ACTION_
tag_type: FOR_EACH
close_tag: _END_
action_method: _get_actions
Such handle functions are no returning String as code substitution, but rather
bool fo IF
Array for FOR_EACH