mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2024-08-16 16:20:51 +03:00
Allow lookup template variables from globalTemplateAttributes
This commit is contained in:
parent
213f47d7d5
commit
02007ae92d
@ -66,6 +66,10 @@ private func resolveTemplates(jsonDictionary: JSONDictionary, templateStructure:
|
||||
if let templateAttributes = reference["templateAttributes"] as? [String: String] {
|
||||
reference = reference.expand(variables: templateAttributes)
|
||||
}
|
||||
|
||||
if let globalVariables = jsonDictionary["globalTemplateAttributes"] as? [String: String] {
|
||||
reference = reference.expand(variables: globalVariables)
|
||||
}
|
||||
}
|
||||
baseDictionary[referenceName] = reference
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user