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

TFPTemplate

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

Template component.

Declaration

Source position: fptemplate.pp line 139

type TFPTemplate = class(TFPCustomTemplate)

published

  property FileName: string;

  

Name of the file with the template.

  property Template: string;

  

The template text.

  property AllowTagParams: Boolean;

  

Allow tags with parameters.

  property OnReplaceTag: TReplaceTagEvent;

  

Event to replace a tag.

  property StartDelimiter: TParseDelimiter;

  

Start delimiter for a template variable.

  property EndDelimiter: TParseDelimiter;

  

End delimiter for a template variable.

  property ParamStartDelimiter: TParseDelimiter;

  

Start delimiter for a template variable parameter.

  property ParamEndDelimiter: TParseDelimiter;

  

End delimiter for a template variable parameter.

  property ParamValueSeparator: TParseDelimiter;

  

Separator for a template variable parameter and its value.

  property OnGetParam: TGetParamEvent;

  

Event to get a value for a template variable.

end;

Inheritance

TFPTemplate

  

Template component.

|

TFPCustomTemplate

  

Base class for templates.

|

TPersistent

|

TObject,IFPObserved

Description

TFPTemplate is a component that can be used to parse templates. It is a descendant of TFPCustomTemplate and publishes the properties of its ancestor.

It can be dropped on a form and its properties can be set in the object inspector.

See also

TFPCustomTemplate

  

Base class for templates.


Documentation generated on: Dec 15 2025