"INCLUDE" command is used to load template definitions from specified
file. It allowes programmer to logically decomposite templates by
separate files. Has two forms of syntax.
Syntax 1
<include>filename<endinclude>
Syntax 2
%include<filename>
where
filename
- name of file templates load from
Also see "MACRO"
and "CALL"
commands.
Example
File1.txt
<macro>ShowAttribute<begin>%1%%.name%%2%%.type%%3%<endmacro>
File2.txt
<macro>main<begin>
Class T%.name%
<for>y
attributes<begin><call>ShowAttribute<,> F<,>: <,>;%cr%<endcall><endfor>
<endmacro>
Generated result
Class TBankAccount
Attribute Number
Attribute User
Attribute Balance