Skip to content

TTemplateParser.ReplaceTag

Replace a tag with a value.

Declaration

Source position: fptemplate.pp line 83

public 
function TTemplateParser.ReplaceTag(const Key: string; 
                                   TagParams: TStringList; 
                                   out ReplaceWith: string) : Boolean;

Description

ReplaceTag will replace the tag with name Key and parameters TagParams with the value in ReplaceWith.

The function returns True if the tag was replaced, False otherwise. A replacement will happen if the OnReplaceTag event is assigned.

See also

Name Description
OnReplaceTag