Conforms to NSObject
Declared in GRMustacheSafeKeyAccess.h

Overview

Your data classes should conform to the GRMustacheSafeKeyAccess protocol to filter the keys that can be accessed by GRMustache templates.

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

Tasks

Class Methods

safeMustacheKeys

List the name of the keys GRMustache can access on this class using the valueForKey: method.

+ (NSSet *)safeMustacheKeys

Return Value

The set of accessible keys on the class.

Availability

v7.0

Discussion

When objects do not respond to this method, only declared properties can be accessed. All properties of Core Data NSManagedObjects are also accessible, even without property declaration.

This method is not used for objects responding to objectForKeyedSubscript:. For those objects, all keys are accessible from templates.

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

Declared In

GRMustacheSafeKeyAccess.h