Skip to content

TFPTemplate

Template component.

Declaration

Source position: fptemplate.pp line 139

type

  TFPTemplate = class(TFPCustomTemplate)
  published
    property FileName;
    property Template;
    property AllowTagParams;
    property OnReplaceTag;
    property StartDelimiter;
    property EndDelimiter;
    property ParamStartDelimiter;
    property ParamEndDelimiter;
    property ParamValueSeparator;
    property OnGetParam;
  end;

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.

Properties

Member Visibility Description
AllowTagParams read only published Allow tags with parameters.
EndDelimiter read only published End delimiter for a template variable.
FileName read only published Name of the file with the template.
ParamEndDelimiter read only published End delimiter for a template variable parameter.
ParamStartDelimiter read only published Start delimiter for a template variable parameter.
ParamValueSeparator read only published Separator for a template variable parameter and its value.
StartDelimiter read only published Start delimiter for a template variable.
Template read only published The template text.
See all Properties

Events

Member Visibility Description
OnGetParam read only published Event to get a value for a template variable.
OnReplaceTag read only published Event to replace a tag.
See all Events

See also

Name Description
TFPCustomTemplate Base class for templates.