Content-type: text/html Include Tag

Home
WebGroove is no longer supported. These docs are reference only.


Include Tag
Loads and compiles the specified file(s) and inserts the results in place of the include tag. The contents of the included file are compiled in-place.

Examples
<include src=/mydir/>
search.wg
view.wg
update.wg
</include>


<include file=library.wg>

<include shortfile.wg>

Syntax
This tag can either be a single tag with the file attribute or a tag pair surrounding a list of filenames.

Attributes
file=Specify a single filename. This attribute is required if you intend to build a single file.
src=Source path prefix


Notes
If you want to include a library of macros, it is better to use read as the include tag can generate unwanted output. The compiler does not allow recursive includes, reads or builds. You can nest all you like. You just can't nest in a way that makes an endless loop. The compiler will catch this and barf.

There is also an alias for include called insert for those who would prefer to use it.

See Also
Attach Tag
Build Tag
Compiler Tag
Read Tag

Up To
Compiler Tags
Complete Tag Reference


WebGroove® is a registered trademark of Creativision Publishing Corporation