Delphi templates and souces codes