Skip to content

Commit

Permalink
more GRMustacheTemplateDelegate documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
groue committed Mar 5, 2012
1 parent 99ede7b commit 16f24a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions guides/delegate.md
Expand Up @@ -38,6 +38,8 @@ Note that those methods do not allow you to build a complete "stack trace" of GR

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`.

Also: if a section tag `{{#name}}...{{/name}}` is provided with an NSArray, it will be rendered several times. However `template:willRenderReturnValueOfInvocation:` will be called once, with the array stored in the return value of the invocation.

### A practical use: debugging templates

You may, for instance, locate keys that could not find any data:
Expand Down

0 comments on commit 16f24a3

Please sign in to comment.