Skip to content

TTemplateVars

Collection of template variables

Declaration

Source position: fpweb.pp line 93

type

  TTemplateVars = class(TCollection)
  public
    function IndexOfVar : Integer;
    function VarByName : TTemplateVar;
    function FindVar : TTemplateVar;
    property Variables[I : Integer]: TTemplateVar; {rw}
  end;

Description

TTemplateVars manages a collection of TTemplateVar objects. It provides methods to find variables by name and access them by index.

This collection is used by web modules to maintain template variables that can be referenced during template processing.

Properties

Member Visibility Description
Variables public Array property providing indexed access to template variables
See all Properties

Methods

Member Visibility Description
FindVar public Searches for a variable with the specified name
IndexOfVar public Returns the index of the variable with the specified name
VarByName public Returns the variable with the specified name
See all Methods

See also

Name Description
TTemplateVar Template variable with name and value