Browse files

Links to sample code projects hosted at…

  • Loading branch information...
1 parent a81f56a commit 3f50ab01ca67bd8288f4aec2e2c44a96f378c9e5 @groue committed Jul 2, 2012
Showing with 4 additions and 0 deletions.
  1. +2 −0 Guides/sample_code/
  2. +2 −0 Guides/sample_code/
@@ -12,6 +12,8 @@ For instance, instead of `[ { name:'Alice' }, { name:'Bob' } ]`, you would provi
GRMustache solution: proxy objects
+**Download the code from**
The [GRMustacheTemplateDelegate](../ protocol can help you extend the mustache language, and avoid preparing your data.
Below we'll implement the special keys `index`, `first`, and `even`. We'll render the following template:
@@ -64,6 +64,8 @@ NSString *rendering = [template renderObject:model];
In the GRMustache way
+**Download the code from**
You may ask yourself, is it worth declaring dozens of stub properties just for formatting numbers?
Before you answer "Of course not, I'm a lazy bastard, just gimme the code", beware that we will use below the [GRMustacheTemplateDelegate](../ protocol. **It thus may be tedious or impossible for [other Mustache implementations]( to produce the same rendering.**

0 comments on commit 3f50ab0

Please sign in to comment.