# Unit multipagetemplate

Description
Uses
Classes, Interfaces, Objects and Records
Functions and Procedures
Types
Constants
Variables

## Description

This unit contains classes to handle multi-page template scripts. A collection of single-page patterns that are applied to multiple webpages.

The class TMultiPageTemplate can be used to load a multi-page template script (and there is also the documentation of the template syntax/semantic).

The class TMultipageTemplateReader can be used to run the template.

TMultipageTemplateReader does not modify the TMultipageTemplate, so a single TMultipageTemplate can be used by arbitrary many TMultipageTemplateReader, even if the readers are in different threads.

## Overview

### Classes, Interfaces, Objects and Records

Name | Description
--- | ---
Class `TTemplateLoadingContext` |
Class `TTemplateAction` | Internal used base class for an action within the multi-page template
Class `TTemplateActionMeta` |
Class `TMultiPageTemplate` | A multi-page template, which defines which and how web pages are processed.
Class `ETemplateReader` |
Class `TMultipageTemplateReader` | Class to process a multi-page template

### Types

`TLoadTemplateFile = function(name: RawByteString): string;`
`TTemplateActionClass = class of TTemplateAction;`
`TLogEvent = procedure (sender: TMultipageTemplateReader; logged: string; debugLevel: integer = 0) of object;`
`TPageProcessed = procedure (sender: TMultipageTemplateReader; parser: THtmlTemplateParser) of object;`

## Description

### Types

`TLoadTemplateFile = function(name: RawByteString): string;`

`TTemplateActionClass = class of TTemplateAction;`

`TLogEvent = procedure (sender: TMultipageTemplateReader; logged: string; debugLevel: integer = 0) of object;`
Event you can use to log, what the template is doing . Arguments: logged contains the message, debugLevel the importance of this event

`TPageProcessed = procedure (sender: TMultipageTemplateReader; parser: THtmlTemplateParser) of object;`
Event that is called after every <page> element is processed. You can use parser to read the variables changed by the template applied to the page

Generated by PasDoc 0.16.0.