4W WebMerge Tag Reference

WM-Include

Syntax
[WM-Include: filePath]

Example
[WM-Include: parts/sidebar.html] 

Description
[WM-Include] is replaced with the contents of another file, usually a a text or HTML format file. If the included file is in HTML format and a <body> tag is present, only the HTML between the <body> and </body> tags is included in your generated page, to avoid possible conflicts with your template's <body> tag.

The file specified in filePath is the full path to the local file in UNIX format, or a partial path relative to the location of the page being generated.

Files with names not ending in ".htm" or ".html" will be assumed to consist of plain text and will be translated into HTML, changing all non-ASCII characters to their corresponding character entity according to the ISO 8859-1 standard. For example, the character "<" becomes "&lt;". Files with names ending in ".htm" or ".html" will be included "as is", with no character translation.

Introduced in version 2.0.