Permalink
Browse files

More straightforward README

  • Loading branch information...
1 parent cf09386 commit b15c302ec6f98dbd95b3716b5a6ef8110551f221 @groue committed Mar 8, 2012
Showing with 5 additions and 6 deletions.
  1. +5 −6 README.md
View
@@ -28,18 +28,17 @@ Three steps to GRMustache
```objc
#import "GRMustache.h"
-NSString *templateString = @"Hello {{name}}!";
-Person *arthur = [Person personWithName:@"Arthur"];
-
// Renders "Hello Arthur!"
-NSString *rendering = [GRMustacheTemplate renderObject:arthur fromString:templateString error:NULL];
+NSString *rendering = [GRMustacheTemplate renderObject:[Person personWithName:@"Arthur"]
+ fromString:@"Hello {{name}}!"
+ error:NULL];
```
You can also render many times a single template:
```objc
-GRMustacheTemplate *template = [GRMustacheTemplate templateFromString:templateString error:NULL];
-rendering = [template renderObject:arthur];
+GRMustacheTemplate *template = [GRMustacheTemplate templateFromString:... error:NULL];
+rendering = [template renderObject:...];
rendering = [template renderObject:...];
```

0 comments on commit b15c302

Please sign in to comment.