diff --git a/Sources/Variable.swift b/Sources/Variable.swift index 3c29bf6..220f080 100644 --- a/Sources/Variable.swift +++ b/Sources/Variable.swift @@ -99,6 +99,12 @@ public struct Variable : Equatable, Resolvable { } } + if let resolvable = current as? Resolvable { + current = try resolvable.resolve(context) + } else if let node = current as? NodeType { + current = try node.render(context) + } + return normalize(current) } }