Conforms to NSObject
Declared in GRMustacheTagDelegate.h

Overview

Objects conforming to the GRMustacheTagDelegate protocol can observe and alter, the rendering of Mustache tags.

Companion guide: https://github.com/groue/GRMustache/blob/master/Guides/delegate.md

Tasks

Instance Methods

mustacheTag:didFailRenderingObject:withError:

Sent right after a Mustache tag has failed rendering.

- (void)mustacheTag:(GRMustacheTag *)tag didFailRenderingObject:(id)object withError:(NSError *)error

Parameters

tag

The Mustache tag that has just failed rendering.

object

The rendered object.

error

The error.

Availability

Declared In

GRMustacheTagDelegate.h

mustacheTag:didRenderObject:as:

Sent right after a Mustache tag has rendered.

- (void)mustacheTag:(GRMustacheTag *)tag didRenderObject:(id)object as:(NSString *)rendering

Parameters

tag

The Mustache tag that has just rendered.

object

The rendered object.

rendering

The actual rendering

Availability

Declared In

GRMustacheTagDelegate.h

mustacheTag:willRenderObject:

Sent right before a Mustache tag renders.

- (id)mustacheTag:(GRMustacheTag *)tag willRenderObject:(id)object

Parameters

tag

The Mustache tag about to render.

object

The object about to be rendered.

Return Value

the object that should be rendered.

Availability

Declared In

GRMustacheTagDelegate.h