Template objects are named pages within the document. These pages may be hidden or visible and can be copied or spawned. They are typically used to dynamically create content (for example, to add pages to an invoice on overflow).
See also the Doc templates property, and createTemplate, getTemplate, and removeTemplate methods.