Skip to content

Commit 02007ae

Browse files
committed
Allow lookup template variables from globalTemplateAttributes
1 parent 213f47d commit 02007ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/ProjectSpec/Template.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ private func resolveTemplates(jsonDictionary: JSONDictionary, templateStructure:
6666
if let templateAttributes = reference["templateAttributes"] as? [String: String] {
6767
reference = reference.expand(variables: templateAttributes)
6868
}
69+
70+
if let globalVariables = jsonDictionary["globalTemplateAttributes"] as? [String: String] {
71+
reference = reference.expand(variables: globalVariables)
72+
}
6973
}
7074
baseDictionary[referenceName] = reference
7175
}

0 commit comments

Comments
 (0)