A rule that performs template expansion.

expand_template

Template expansion

This performs a simple search over the template file for the keys in substitutions, and replaces them with the corresponding values.

There is no special syntax for the keys. To avoid conflicts, you would need to explicitly add delimiters to the key strings, for example “{KEY}” or “@KEY@”.

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
outThe destination of the expanded file.Labelrequired
substitutionsA dictionary mapping strings to their substitutions.Dictionary: String -> Stringrequired
templateThe template file to expand.Labelrequired