10 WebMaker Language (WML)

10.2 WML include files

You can define include files. Each include file is treated as if all the definitions in it appeared in the WML file you are editing. The general syntax is:

INCLUDE "filename"
The filename may be a relative pathname or an absolute pathname. If it is a relative pathname, the included file must be relative to the directory of the WML file you are editing.

In the following example of a relative pathname, the nodesTI.wml file must be in the same directory as the WML file you are editing:

INCLUDE "nodesTI.wml"
In the following example of a relative pathname, the lib directory must be in the same directory as the WML file you are editing:

INCLUDE "lib/nodesTI.wml"
The following are two examples of absolute pathnames on Unix:

INCLUDE "/app/webmaker/lib/nodesTI.wml"
INCLUDE "~skeene/lib/nodesTI.wml"

WebMaker User Guide - 27 SEP 1995

Generated with Harlequin WebMaker