Unit multipagetemplate

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

This unit contains classes to handle multi-page template scripts. A collection of single-page patterns (previously also called templates) that can be applied to different pages.



The class TMultiPageTemplate can be used to load a 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 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 pages are processed.
Class ETemplateReader  
Class TMultipageTemplateReader Class to process a multi page template

Types

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

Description

Types

TTemplateActionClass = class of TTemplateAction;
 
TLoadTemplateFile = function(name: RawByteString): string;
 
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.14.0.