GRMustache v0.9.2 Release Notes
-
🚀 Released on June 7, 2015
🛠 Fixed
- ✅ The
Lambda
functions pass all mustache/spec tests for "Mustache lambdas".
🆕 New
🔧
TagDelimiterPair
is a pair of tag delimiters such as("{{","}}")
. It is the type of the propertiesConfiguration.tagDelimiterPair
andTag.tagDelimiterPair
.The
Template.contentType
property exposes the content type (Text or HTML) of a template.👍 The Swift
Set
type now has explicit support throughfunc Box<T: MustacheBoxable>(set: Set<T>?) -> MustacheBox
.
💥 Breaking changes
📜
Template(string:error:)
used to load{{>partial}}
tags from resources in the main bundle. It is no longer the case, and it returns aGRMustacheErrorDomain
error of codeGRMustacheErrorCodeTemplateNotFound
if such partial tag is found. To parse a template string that contain partial tags that should be loaded from the main bundle resources, store this string as a resource and loadTemplate(named:...)
, or use an explicitTemplateRepository(bundle: NSBundle.mainBundle())
.🔧
Configuration.tagStartDelimiter
andConfiguration.tagEndDelimiter
have been replaced byConfiguration.tagDelimiterPair
.Tag.renderInnerContent
has been renamedTag.render
.Mustache-specific errors are now of type
Mustache.Error
.
- ✅ The