User Tools

Site Tools

Navigation:  Templates > Template Language Reference > Introduction > Template Structure >====== The Template Registry File C6H0068.jpg ====== Previous pageReturn to chapter overviewNext page

The Template Registry file (TemplateRegistry.TRF) is a specialized data repository which stores template code and defaults in binary form. All the template elements available in the Application Generator come from the registry. As you add elements from the template into your application, the Application Generator retrieves the code from the registry then stores it along with your customizations, in the .APP file.

Storing the templates in a binary registry provides these advantages:

·Quick design-time performance.

·The ability to update the defaults in the registry using standard application development tools (such as the Window Formatter). For example, you can modify a procedure template's default window without writing template source code.

The sources for the TemplateRegistry.TRF are the template code files (.TPL and .TPW) which are installed in the TEMPLATE subdirectory. The Application Generator can read and register .TPL files, adding it to the template registry tree. The .TPW files usually contain additional procedure or code template source, which is processed along with the .TPL file by the #INCLUDE statement in the .TPL file. This allows the template author to logically separate disparate template components.

The default template file for the Clarion family is named CW.TPL (ABCHAIN.TPL for the ABC Family). This file uses the #INCLUDE statement to specify processing the the other .TPW files which appear in the \<;ClarionRoot>\TEMPLATE directory.

the_template_registry_file.htm.txt · Last modified: 2021/04/15 15:57 (external edit)