Skip to content
Newer
Older
100644 85 lines (52 sloc) 2.67 KB
a81f56a @groue Restore README title
authored Jul 1, 2012
1 GRMustache
2 ==========
3
445cfc2 @groue Update README.md
authored Mar 15, 2015
4 GRMustache is a [Mustache](http://mustache.github.io) template engine written in Objective-C, for both MacOS Cocoa and iOS.
9f0db57 @groue Improved description of the library purpose
authored Aug 30, 2014
5
6 It ships with built-in goodies and extensibility hooks that let you avoid the strict minimalism of the genuine Mustache language when you need it.
a81f56a @groue Restore README title
authored Jul 1, 2012
7
2f5172b @groue v7.3.2
authored Apr 22, 2015
8 **April 22, 2015: GRMustache 7.3.2 is out.** [Release notes](RELEASE_NOTES.md)
013c8c8 @groue Warning about v7.2.0
authored Sep 13, 2014
9
10
6c83e7f @groue Document dropped support for garbage collection
authored Mar 11, 2014
11 Get release announcements and usage tips: follow [@GRMustache on Twitter](http://twitter.com/GRMustache).
f0a8e78 @groue Clean up README
authored Mar 9, 2014
12
13
4b3a5e9 @groue Swift notes
authored Nov 4, 2014
14 System requirements
15 -------------------
16
17 GRMustache targets iOS down to version 4.3, MacOS down to 10.6 Snow Leopard (without garbage collection), and only depends on the Foundation framework.
18
445cfc2 @groue Update README.md
authored Mar 15, 2015
19 **Swift developers**: You can use GRMustache from Swift, with a limitation: you can only render Objective-C objects. Instead, consider using [GRMustache.swift](https://github.com/groue/GRMustache.swift), a pure Swift implementation of GRMustache.
4b3a5e9 @groue Swift notes
authored Nov 4, 2014
20
21
66a61ab @groue README
authored Mar 9, 2012
22 How To
23 ------
f52da9d @groue README+RELEASE_NOTES for GRMustacheNumberFormatterHelper and GRMustac…
authored Jan 24, 2012
24
47258e8 @groue Update README with more explicit installation options
authored Jan 4, 2013
25 ### 1. Setup your Xcode project
acb8902 @groue wording
authored Jan 24, 2012
26
f2f51db @groue README links to Installation Guide
authored Feb 18, 2013
27 You have three options, from the simplest to the hairiest:
47258e8 @groue Update README with more explicit installation options
authored Jan 4, 2013
28
f2f51db @groue README links to Installation Guide
authored Feb 18, 2013
29 - [CocoaPods](Guides/installation.md#option-1-cocoapods)
c30cfab @groue minor
authored Feb 19, 2013
30 - [Static Library](Guides/installation.md#option-2-static-library)
f2f51db @groue README links to Installation Guide
authored Feb 18, 2013
31 - [Compile the raw sources](Guides/installation.md#option-3-compiling-the-raw-sources)
47258e8 @groue Update README with more explicit installation options
authored Jan 4, 2013
32
559f600 @groue CocoaPods support
authored May 8, 2012
33
d8d27c1 @groue README.md tweaks
authored Aug 25, 2012
34 ### 2. Start rendering templates
1f63119 @groue wording
authored Feb 9, 2012
35
c3116bd @groue GitHub Flavored Markdown
authored Mar 5, 2012
36 ```objc
37 #import "GRMustache.h"
4100f48 @groue README: focus on one-liners
authored Sep 27, 2013
38 ```
39
40 One-liners:
c3116bd @groue GitHub Flavored Markdown
authored Mar 5, 2012
41
4100f48 @groue README: focus on one-liners
authored Sep 27, 2013
42 ```objc
c7bb191 @groue Revert "experiment"
authored Feb 19, 2013
43 // Renders "Hello Arthur!"
4100f48 @groue README: focus on one-liners
authored Sep 27, 2013
44 NSString *rendering = [GRMustacheTemplate renderObject:@{ @"name": @"Arthur" } fromString:@"Hello {{name}}!" error:NULL];
45 ```
f52da9d @groue README+RELEASE_NOTES for GRMustacheNumberFormatterHelper and GRMustac…
authored Jan 24, 2012
46
4100f48 @groue README: focus on one-liners
authored Sep 27, 2013
47 ```objc
48 // Renders the `Profile.mustache` resource of the main bundle
49 NSString *rendering = [GRMustacheTemplate renderObject:user fromResource:@"Profile" bundle:nil error:NULL];
50 ```
51
52 Reuse templates in order to avoid parsing the same template several times:
53
54 ```objc
55 GRMustacheTemplate *template = [GRMustacheTemplate templateFromResource:@"Profile" bundle:nil error:nil];
56 rendering = [template renderObject:arthur error:NULL];
57 rendering = [template renderObject:barbara error:NULL];
58 rendering = ...
66a61ab @groue README
authored Mar 9, 2012
59 ```
f52da9d @groue README+RELEASE_NOTES for GRMustacheNumberFormatterHelper and GRMustac…
authored Jan 24, 2012
60
637c775 @groue Simpler README
authored Mar 16, 2014
61
634ad41 @groue wording
authored Mar 8, 2012
62 Documentation
63 -------------
64
637c775 @groue Simpler README
authored Mar 16, 2014
65 If you don't know Mustache, start here: http://mustache.github.io/mustache.5.html
f5fb58f @groue wording
authored Mar 2, 2012
66
4a9c323 @groue Simpler README
authored Mar 16, 2014
67 - [Guides](Guides/README.md): a guided tour of GRMustache
68 - [Reference](http://groue.github.io/GRMustache/Reference/): all classes & protocols
637c775 @groue Simpler README
authored Mar 16, 2014
69 - [Troubleshooting](Guides/troubleshooting.md)
70 - [FAQ](Guides/faq.md)
c0e699e @groue wip
authored Feb 2, 2012
71
f5fb58f @groue wording
authored Mar 2, 2012
72
e4bd74e @groue License
authored Nov 1, 2010
73 License
74 -------
75
523336a @groue Fix for README links?
authored Feb 9, 2013
76 Released under the [MIT License](LICENSE).
cf9c364 @groue Update README.md
authored Aug 18, 2015
77
78
79 Other Nifty Libraries
80 ---------------------
81
f592eac @groue Update README.md
authored Aug 22, 2015
82 - [groue/GRMustache.swift](http://github.com/groue/GRMustache.swift): Flexible Mustache templates for Swift 1.2 and 2.
83 - [groue/GRDB.swift](http://github.com/groue/GRDB.swift): SQLite toolkit for Swift 2.
84 - [groue/GRValidation](http://github.com/groue/GRDB.swift): Validation toolkit for Swift 2.
Something went wrong with that request. Please try again.