Skip to content

TTemplateVar

Template variable with name and value

Declaration

Source position: fpweb.pp line 79

type

  TTemplateVar = class(TCollectionItem)
  public
    procedure Assign;
    function GetDisplayName : string;
  published
    property Name: string; {rw}
    property Value: string; {rw}
  end;

Description

TTemplateVar represents a single template variable that can be used in template processing. Each variable has a name and a corresponding value that will be substituted during template processing.

Properties

Member Visibility Description
Name published The name of the template variable
Value published The value of the template variable
See all Properties

Methods

Member Visibility Description
Assign public Assigns properties from another template variable
GetDisplayName public Returns the display name for this template variable
See all Methods

See also

Name Description
TTemplateVars Collection of template variables
TFPTemplate