Skip to content
Browse files

more GRMustacheTemplateDelegate documentation

  • Loading branch information...
1 parent a4e64b8 commit 62ed17fdbb85667cf192fad29cd9e0d70b8ebfdc @groue committed Mar 5, 2012
Showing with 2 additions and 10 deletions.
  1. +2 −10 guides/delegate.md
View
12 guides/delegate.md
@@ -5,10 +5,6 @@ GRMustacheTemplateDelegate protocol
This protocol lets you observe, and possibly alter the rendering of a template.
-**Whoever needs to develop and use templates that are compatible with [other Mustache implementations](https://github.com/defunkt/mustache/wiki/Other-Mustache-implementations) should make sure he does not use this protocol to alter template rendering.**
-
-For everybody else, this protocol brings some yummy expressiveness.
-
Observe the template rendering
------------------------------
@@ -63,12 +59,8 @@ Alter the template rendering
The `returnValue` property of the *invocation* argument can be written. If you set it in `template:willRenderReturnValueOfInvocation:`, GRMustache will render the value you have provided.
-```objc
-- (void)template:(GRMustacheTemplate *)template willRenderReturnValueOfInvocation:(GRMustacheInvocation *)invocation
-{
- invocation.returnValue = @"blah";
-}
-```
+**Warning: If your goal is to design templates that remain compatible with [other Mustache implementations](https://github.com/defunkt/mustache/wiki/Other-Mustache-implementations), don't use this feature.**
+
### A practical use: more debugging templates

0 comments on commit 62ed17f

Please sign in to comment.
Something went wrong with that request. Please try again.