Unit 'fpTemplate' Package
[Overview][Constants][Types][Classes][Variables][Index] [#fcl]

TFPCustomTemplate

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Base class for templates.

Declaration

Source position: fptemplate.pp line 107

type TFPCustomTemplate = class(TPersistent)

public

  function HasContent;

  

Check if the template has content.

  function GetContent;

  

Get the parsed template content.

  procedure Assign(); override;

  

Assign one template to another.

  property StartDelimiter: TParseDelimiter; [rw]

  

Start delimiter for a template variable.

  property EndDelimiter: TParseDelimiter; [rw]

  

End delimiter for a template variable.

  property ParamStartDelimiter: TParseDelimiter; [rw]

  

Start delimiter for a template variable parameter.

  property ParamEndDelimiter: TParseDelimiter; [rw]

  

End delimiter for a template variable parameter.

  property ParamValueSeparator: TParseDelimiter; [rw]

  

Separator for a template variable parameter and its value.

  property FileName: string; [rw]

  

Name of the file with the template.

  property Template: string; [rw]

  

The template text.

  property OnGetParam: TGetParamEvent; [rw]

  

Event to get a value for a template variable.

  property OnReplaceTag: TReplaceTagEvent; [rw]

  

Event to replace a tag.

  property AllowTagParams: Boolean; [rw]

  

Allow tags with parameters.

end;

Inheritance

TFPCustomTemplate

  

Base class for templates.

|

TPersistent

|

TObject,IFPObserved

Description

TFPCustomTemplate is a base class for template processing. It can load a template from a file or from a string and then uses a TTemplateParser instance to parse the template.

Do not use this class directly, use TFPTemplate instead.

See also

TFPTemplate

  

Template component.


Documentation generated on: Dec 15 2025