Registering Sub-Templates

To register a sub-template, you include a Register directive in the master template. You can include as many Register directives as you like, so one master template can include multiple sub-templates. Sub-templates can be nested.

<%@ Register Name="Header" Template="Header.cst" MergeProperties="True" ExcludeProperties="IncludeMeta" %>

Register Directive Attributes

There are four attributes that you can supply to the Register directive. The Name and Template parameters are required; the others are optional.

Name

The Name attribute specifies the type name for the sub-template in the master template. It can be used to create an instance of the sub-template.

Template

The Template attribute specifies the relative path to the sub-template.

MergeProperties

The MergeProperties attribute specifies whether the properties of the sub-template should be dynamically added to the master template's properties. If you omit this attribute, it defaults to False.

ExcludeProperties

The ExcludeProperties attribute specifies a comma-delimited list of properties to be excluded from merging to the master template's property list. You may use * as a wildcard in the property list.