"MACRO" command is used to define new macro template. The main (root) remplate must have name "main".
Also see "CALL" and "INCLUDE" commands.

Syntax
<macro>name<begin>macro body<endmacro>
where
name - name of macro to define
macro body - any combination of MGL commands, except "MACRO".


Example
Main template
Class T%.name%
<for>y attributes<begin>  Attribute %y.name% <endfor>
Generated result
Class TBankAccount
  Attribute Number
  Attribute User
  Attribute Balance