Overview of Documentor : Basic Concepts : Document Generation Language (DGL) : DGL Segments

DGL Segments

The template is divided into sections called segments. To generate the document, you execute the template. Each segment of the template produces a separate text file called a document segment.

Creating a document in segments is more efficient than producing an entire document. By using segments, you can produce the document in stages, updating or editing the segments as needed.

Note: The division of the template into segments does not necessarily have to correspond to the final document divisions (chapters, sections, and so on). However, it is a good idea to have the template segments correspond with document divisions wherever possible.