SwiftGen / StencilSwiftKit

A framework bringing additional nodes & filters to Stencil dedicated to Swift code generation
MIT License
289 stars 55 forks source link

How can I keep {{ }} in stencil? #170

Closed wulinman closed 10 months ago

wulinman commented 1 year ago

want a output with {{ }} like {{(key)}}, how can I keep {{ }} ? Example:

args.forEach { key, value in result = result.replacingOccurrences(of: "{{(key)}}", with: value) }

but output comes as: args.forEach { key, value in result = result.replacingOccurrences(of: "", with: value) }