Sign in Join
FPDoc Onlineexperiment

TFPCustomTemplate class

In unit fpTemplate

Base class for templates.

Declaration

pascal
TFPCustomTemplate = class(TPersistent)

Inheritance

  1. TFPCustomTemplate
  2. TPersistent
  3. 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

StartDelimiterpublicStart delimiter for a template variable.
EndDelimiterpublicEnd delimiter for a template variable.
ParamStartDelimiterpublicStart delimiter for a template variable parameter.
ParamEndDelimiterpublicEnd delimiter for a template variable parameter.
ParamValueSeparatorpublicSeparator for a template variable parameter and its value.
FileNamepublicName of the file with the template.
TemplatepublicThe template text.
AllowTagParamspublicAllow tags with parameters.

Methods

GetParamprotected
ReplaceTagprotected
CreateParserprotected
HasContentpublicCheck if the template has content.
GetContentpublicGet the parsed template content.
AssignpublicAssign one template to another.

Events

OnGetParampublicEvent to get a value for a template variable.
OnReplaceTagpublicEvent 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.