The #parse directive is similar to the
#include directive (see
The #include directive) with the addition that Template Engine will parse the text file. This is useful if you have a template fragment that you want to share between templates.
#parse directives can be recursive, which means the parsed file can in turn contain
#parse directives.
You can use the same protocols for the #parse directive as you can use for the
#include directive (see
The #include directive).
In the following example the file segment.txt is imported to the template using the
#parse directive. The content of
segment.txt is as follows:
In the following example the file Settings.txt is imported to the template using the
#parse directive. The content of
Settings.txt is as follows:
In the following example the file Calculate.txt is imported to the template using the
#parse directive. The content of
Calculate.txt is as follows: