[fpc-pascal] fptemplate example wrong?

Luca Olivetti luca at ventoso.org
Sat Apr 18 16:09:07 CEST 2015

El 18/04/15 a les 14:16, ABorka ha escrit:
> The OnGetParam and OnReplaceTag are two totally different ways to handle
> templates. The former is the original version found in FPC packages, the
> latter is the newer, more Delphi-like - although enhanced - way to do
> templates. The two are mutually exclusive and controlled by the
> AllowTagParams flag (false -> old way,  true -> new way).

I saw that, it's clearly indicated in the source

> The fptemplate.txt file under the FPC sources,
> .../packages/fcl-base/texts/fptemplate.txt might help a little.

Thank you, I didn't see it. It explains how the new way works, but it
doesn't explain why the old one uses the web module's OnReplaceTag event
instead of the ModuleTemplate's one (or vice versa).


More information about the fpc-pascal mailing list