GRMustacheContentType Constants Reference
Declared in | GRMustacheContentType.h |
Availability | v6.2 |
References | GRMustacheConfiguration GRMustacheTemplateRepository |
GRMustacheContentType
The content type of strings rendered by templates.
Definition
typedef NS_ENUM(NSUInteger, GRMustacheContentType ) {
GRMustacheContentTypeHTML,
GRMustacheContentTypeText,
};
Constants
GRMustacheContentTypeHTML
-
The
GRMustacheContentTypeHTML
content type has templates render HTML. HTML template escape the input of variable tags such as{{name}}
. Use triple mustache tags{{{content}}}
in order to avoid the HTML-escaping.Available in v6.2
Declared In
GRMustacheContentType.h
. GRMustacheContentTypeText
-
The
GRMustacheContentTypeText
content type has templates render text. They do not HTML-escape their input:{{name}}
and{{{name}}}
have identical renderings.Available in v6.2
Declared In
GRMustacheContentType.h
.
Availability
v6.2
Declared In
GRMustacheContentType.h