Omni Systems, Inc. Mif2Go User's Guide, Version 55

<< Prev | Next >>

> 30 Working with templates > 30.6 Creating your own configuration templates > 30.6.3 Chaining configuration templates

### 30.6.3 Chaining configuration templates

A configuration template can include a setting for [Templates]Configs, specifying yet another template file. This allows you to create a chain of templates for Mif2Go to search for settings. The chain can be any length. All files in the chain must have distinct names; the search stops if Mif2Go finds a repeated template name. The settings in all templates in a chain are applied to your project configuration in a cascade, at run time.

Precedence of templates

In a chain of templates, if the same setting appears in more than one template file but has a different value in each file, the value for that setting in a template closer in the chain to the project configuration file overrides the value in any template farther away in the chain from the project configuration file; and a value for that same setting in the project configuration file overrides the closest template value. See §33.1.2 Understanding precedence of configuration settings.