The <include>
tag
<include>
includes another file in the XHTML output. It is mostly
used for including generic settings and layout elements, such as navigation
menus, links to CSS files, javascript code etc.
The included XML file is included at the point where you specify it. This has effect on some tags, while, for other tags, this doesn't matter. Most notably, if you include a navigation menu in the beginning of each file, the resulting XHTML will also contain the navigation menu in the beginning.
Attributes
- src: the XML file to include. The quickstart has a note about linking that is important to learn about Corbon's relative linking. Basically, any link you make should start from the root of the page, even when the source page is in the same folder as the page you're referring to.
Example
Let's say we want to include the file settings/generic.xml that contains a standard header to be shown on each page.
<include src="settings/generic.xml"/>
The resulting file will contain:
Generic header
rest of the content