Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

wording

  • Loading branch information...
commit 1f63119cf6b836b076ac76977be6fce6b82e7b46 1 parent 8b93b8b
@groue authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 README.md
View
10 README.md
@@ -31,6 +31,8 @@ Usage
GRMustache rendering is the combination of a template string and of an object that will provide the data.
+You can render templates on the fly:
+
#import "GRMustache.h"
NSString *templateString = @"Hello {{name}}!";
@@ -41,7 +43,13 @@ GRMustache rendering is the combination of a template string and of an object th
fromString:templateString
error:NULL];
-Speaking of templates, GRMustache eats many kinds of them: raw strings, files, bundle resources. For more information, check [guides/templates.md](GRMustache/blob/master/guides/templates.md).
+You can also parse a template once, and render it many times.
+
+ GRMustacheTemplate *template = [GRMustacheTemplate parseString:templateString error:NULL];
+ [template renderObject:arthur];
+ [template renderObject:...];
+
+Speaking of templates, GRMustache eats many kinds of them: files and bundle resources as well as raw strings. For more information, check [guides/templates.md](GRMustache/blob/master/guides/templates.md).
Regarding the data objects, GRMustache fetches values with the standard Key-Value Coding `valueForKey:` method. Check [guides/runtime.md](GRMustache/blob/master/guides/runtime.md).
Please sign in to comment.
Something went wrong with that request. Please try again.