groue / GRMustache.swift

Flexible Mustache templates for Swift
http://mustache.github.com/
MIT License
594 stars 155 forks source link

Static library support #82

Open rupeshnandha opened 2 years ago

rupeshnandha commented 2 years ago

When we compile this Framework as Static Library (Mach-O Type as staticlib), at run time it doesn't type cast String, Int, Number as MustacheBox. I made a hot fix by adding below code changes in Box.swift to catch other data types and return as MustacheBox.

Screenshot 2022-02-23 at 16 16 12