HBMustacheContentTypes
public enum HBMustacheContentTypes
Map of strings to content types.
The string is read from the “CONTENT_TYPE” pragma {{% CONTENT_TYPE: type}}
. Replace type with
the content type required. The default available types are TEXT
and HTML
. You can register your own
with HBMustacheContentTypes.register
.
-
Register new content type
Declaration
Swift
public static func register(_ contentType: HBMustacheContentType, named name: String)
Parameters
contentType
Content type
name
String to identify it