TFPCustomTemplate class
Base class for templates.
Declaration
TFPCustomTemplate = class(TPersistent)Inheritance
- TFPCustomTemplate
- TPersistent
- TObject
Descends from it: TFPTemplate
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
Properties
StartDelimiter | public | Start delimiter for a template variable. |
EndDelimiter | public | End delimiter for a template variable. |
ParamStartDelimiter | public | Start delimiter for a template variable parameter. |
ParamEndDelimiter | public | End delimiter for a template variable parameter. |
ParamValueSeparator | public | Separator for a template variable parameter and its value. |
FileName | public | Name of the file with the template. |
Template | public | The template text. |
AllowTagParams | public | Allow tags with parameters. |
Methods
GetParam | protected | |
ReplaceTag | protected | |
CreateParser | protected | |
HasContent | public | Check if the template has content. |
GetContent | public | Get the parsed template content. |
Assign | public | Assign one template to another. |
Events
OnGetParam | public | Event to get a value for a template variable. |
OnReplaceTag | public | Event to replace a tag. |
Inherited
From TPersistent (8)
AssignTo DefineProperties Destroy FPOAttachObserver FPODetachObserver FPONotifyObservers GetNamePath GetOwner
From TObject (41)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance Create DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
