DML2  v1.0.1
Introduction to DML2
Getting Started
Files and Directories
Custom Tags
File Output
Creating Objects
Rendering and Scope
Object Execution
Rendering Arrays
Automatic Tags
Release Notes
<( Includes )>

The easiest way to use DML2 so that you may quickly export the same content to a different/new format or layout is to separate the content into one or more files and then have the "template" in a different file. DML2 allows you to easily define objects and content in one file and then define render and execution statements in another.

Whenever you have DML2 file that you would like to have access to another file, just use an include statement, as below:

include "content.dml2"

Now the file may have access to whatever is defined within content.dml2. You may include multiple files if you'd like to, just place multiple such statements in the appropriate files. Files that you include from another file will not output any files; you must tell dml2build to explicitly read them.

!Note: When you manipulate the objects inside of an includeed file, you actually edit the objects in the original file. This is a speed issue, as editing the actual objects is faster than editing copies. If you have many files that include each other, be aware that changes made to includeed objects is permanent.
©2002 Jared Krinke. ((( Revolution )))