Permalink
Browse files

Links to sample code projects hosted at https://github.com/groue/GRMu…

  • 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/indexes.md
  2. +2 −0 Guides/sample_code/number_formatting.md
@@ -12,6 +12,8 @@ For instance, instead of `[ { name:'Alice' }, { name:'Bob' } ]`, you would provi
GRMustache solution: proxy objects
----------------------------------
+**Download the code from https://github.com/groue/GRMustacheSampleCode/tree/master/GRMustacheIndexes**
+
The [GRMustacheTemplateDelegate](../delegate.md) 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 https://github.com/groue/GRMustacheSampleCode/tree/master/GRMustacheNumberFormatting**
+
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](../delegate.md) protocol. **It thus may be tedious or impossible for [other Mustache implementations](https://github.com/defunkt/mustache/wiki/Other-Mustache-implementations) to produce the same rendering.**

0 comments on commit 3f50ab0

Please sign in to comment.