The <_include> tag can be used to include another LeXml script or a plain text file/URL either local or
off-site via HTTP. It also supports templating for on-site parsed documents and for all off-site documents. Note
that if you request an off-site URL and the server is down in such a way that it just doesn't respond then this
could cause the page to take several minutes to render.
Body of the <_include> tag:
Attributes of the <_include> tag:
file=<filename or URL of document to include> (Required)
The file attribute is the filename or URL of the file to include. If it begins with http:... or file:... then
it's considered to be a URL, else it's considered to be a file. If it's not a url, the file is searched for relative
to the location of the page that is including it.
parsed=<yes/no> (default=no) (Optional)
The parsed attribute tells LeXml whether the file should be included as another LeXml document or included as
plain text. If it's included as a LeXml document, it inherits all variables from it's parent page and all variables
that it sets or modifies are back-inherited back into the parent. This way included documents can be used to, say,
set certain standard site-wide variables. Either on-site or off-site documents can be parsed.
template=<number of seconds template is valid> (Optional)
If template is set to something higher than 0, the include will be templated with the template lasting the
given number of seconds.
Examples of the <_include> tag:
<_include file="file.html"/>
<_include file="http://www.url.com"/>
<_include file="header.lexml" parsed="yes" template="600"/>