diff --git a/Sources/Mustache/Template+Render.swift b/Sources/Mustache/Template+Render.swift index c3f657c..8de713d 100644 --- a/Sources/Mustache/Template+Render.swift +++ b/Sources/Mustache/Template+Render.swift @@ -46,6 +46,7 @@ extension MustacheTemplate { switch token { case .text(let text): return text + case .variable(let variable, let transform): if let child = getChild(named: variable, transform: transform, context: context) { if let template = child as? MustacheTemplate { @@ -56,6 +57,7 @@ extension MustacheTemplate { return context.contentType.escapeText(String(describing: child)) } } + case .unescapedVariable(let variable, let transform): if let child = getChild(named: variable, transform: transform, context: context) { if let renderable = child as? MustacheCustomRenderable { @@ -64,6 +66,7 @@ extension MustacheTemplate { return String(describing: child) } } + case .section(let variable, let transform, let template): let child = self.getChild(named: variable, transform: transform, context: context) return self.renderSection(child, with: template, context: context)