GRMustacheRendering Class Reference
Inherits from | NSObject |
Conforms to | GRMustacheRendering |
Declared in | GRMustacheRendering.h |
Overview
The GRMustacheRendering class helps building rendering objects without writing a custom class that conforms to the GRMustacheRendering protocol.
Companion guide: https://github.com/groue/GRMustache/blob/master/Guides/rendering_objects.md
Class Methods
renderingObjectForObject:
Returns a rendering object that is able to render the argument object for the various Mustache tags.
+ (id<GRMustacheRendering>)renderingObjectForObject:(id)object
Parameters
- object
An object.
Return Value
A rendering object able to render the argument.
Availability
v7.0
Declared In
GRMustacheRendering.h
renderingObjectWithBlock:
Returns a rendering object that renders with the provided block.
+ (id<GRMustacheRendering>)renderingObjectWithBlock:(NSString *( ^ ) ( GRMustacheTag *tag , GRMustacheContext *context , BOOL *HTMLSafe , NSError **error ))renderingBlock
Parameters
- renderingBlock
A block that follows the semantics of the renderForMustacheTag:context:HTMLSafe:error: method defined by the GRMustacheRendering protocol. See the documentation of this method.
Return Value
A rendering object
Availability
v7.0
Declared In
GRMustacheRendering.h