Allow lookup template variables from globalTemplateAttributes

This commit is contained in:
Thanh Vu 2023-09-07 11:43:47 +07:00
parent 213f47d7d5
commit 02007ae92d

View File

@ -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
}