page header

Code Generation Configurator, Template Bindings Tab (advanced view)

The Template bindings tab is the tab where you define the precedence of the template bindings to use. This tab is only visible when Advanced... is clicked on the General Settings tab. LLBLGen Pro uses template files which are bound to a TemplateID. These bindings are defined in so called template bindings files. On the Template bindings tab you'll see all found template bindings files and their contained TemplateID - template file bindings for the target platform you've chosen on the General settings tab. The template bindings files are sorted on precedence, the one with the highest precedence is located at the top.

There can be more than one template bindings file which binds a file to the same TemplateID. When a task refers to a given TemplateID, LLBLGen Pro starts looking for a template binding with that TemplateID in the template bindings files in scope (the ones you see on the Template Bindings Tab), starting at the top. To let the code generator choose for a given TemplateID a particular template file, make sure the template binding for that TemplateID is above all other bindings to that same TemplateID. This mechanism lets you easily override the shipped templates by creating a new template bindings file, bind your own custom template to the same TemplateID you want to override and then place the template bindings file above the template bindings file which contains the binding you want to override.

You can change the precedence of a template bindings file by selecting it and then by clicking the move up/down buttons at the right of the list. The order in which the templatebindings are placed at the time the code generation is started is preserved in the project file.


LLBLGen Pro Designer v4.1 documentation. ©2002-2013 Solutions Design