Permalink
Browse files

more GRMustacheTemplateDelegate documentation

  • Loading branch information...
1 parent dd42d55 commit a4e64b8377d35df1e5e4ef01079df5639465f3c4 @groue committed Mar 5, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 guides/delegate.md
View
@@ -38,7 +38,9 @@ You can read the following properties of the *invocation* argument:
- `id returnValue`: the return value of the invocation.
- `NSString *key`: the key that did provide this value.
-Note that a tag like `{{person.name}}` is rendered once. Thus `template:willRenderReturnValueOfInvocation:` will be called once. If the person has been found, the invocation's key will be `@"name"`, and the return value the name of the person. If the person could not be found, the key will be `@"person"`, and the return value `nil`.
+Note that those methods do not allow you to build a complete "stack trace" of GRMustache rendering. They are not called for each accessed key. They are called for each tag rendering, which is quite different.
+
+For instance, a tag like `{{person.name}}` is rendered once. Thus `template:willRenderReturnValueOfInvocation:` will be called once. If the person has been found, the invocation's key will be `@"name"`, and the return value the name of the person. If the person could not be found, the key will be `@"person"`, and the return value `nil`.
### A practical use: debugging templates

0 comments on commit a4e64b8

Please sign in to comment.