Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 109 lines (60 sloc) 5.242 kb
a81f56a8 »
2012-07-01 Restore README title
1 GRMustache
2 ==========
3
4 GRMustache is a production-ready implementation of [Mustache](http://mustache.github.com/) templates for MacOS Cocoa and iOS.
5
c3a28fb9 »
2012-08-06 v4.3.2
6 **August 6th, 2012: GRMustache 4.3.2 is out.** [Release notes](GRMustache/blob/master/RELEASE_NOTES.md)
f01775d7 »
2010-11-01 README
7
4f1625f4 »
2012-01-24 guides
8 Breaking news on Twitter: http://twitter.com/GRMustache
070c126c »
2010-11-02 dot variable extension
9
66a61abd »
2012-03-09 README
10 How To
11 ------
f52da9d2 »
2012-01-24 README+RELEASE_NOTES for GRMustacheNumberFormatterHelper and GRMustac…
12
559f6003 »
2012-05-08 CocoaPods support
13 ### 1. Download and add to your Xcode project
acb89021 »
2012-01-24 wording
14
cf09386c »
2012-03-08 More straightforward README
15 $ git clone https://github.com/groue/GRMustache.git
f5fb58fb »
2012-03-02 wording
16
651221ed »
2012-07-02 Can't get used to "OS X" wording - restore "MacOS"
17 - For MacOS development, add `include/GRMustache.h` and `lib/libGRMustache4-MacOS.a` to your project.
498f1966 »
2012-07-02 Attempt to clarify the targeted system versions
18 - For iOS development, add `include/GRMustache.h` and `lib/libGRMustache4-iOS.a` to your project.
19
0f140787 »
2012-08-10 README: remove warning against CocoaPods that would expose private he…
20 Alternatively, you may use [CocoaPods](https://github.com/CocoaPods/CocoaPods): append `dependency 'GRMustache'` to your Podfile.
b5c46401 »
2012-03-05 Expressiveness
21
0f140787 »
2012-08-10 README: remove warning against CocoaPods that would expose private he…
22 GRMustache targets MacOS down to 10.6 Snow Leopard, iOS down to version 3, and only depends on the Foundation framework.
559f6003 »
2012-05-08 CocoaPods support
23
24 ### 2. Import "GRMustache.h" and start rendering templates
1f63119c »
2012-02-09 wording
25
c3116bd1 »
2012-03-05 GitHub Flavored Markdown
26 ```objc
27 #import "GRMustache.h"
28
29 // Renders "Hello Arthur!"
b15c302e »
2012-03-08 More straightforward README
30 NSString *rendering = [GRMustacheTemplate renderObject:[Person personWithName:@"Arthur"]
31 fromString:@"Hello {{name}}!"
32 error:NULL];
f52da9d2 »
2012-01-24 README+RELEASE_NOTES for GRMustacheNumberFormatterHelper and GRMustac…
33
66a61abd »
2012-03-09 README
34 // Renders from a resource
35 NSString *rendering = [GRMustacheTemplate renderObject:[Person personWithName:@"Arthur"]
36 fromResource:@"Profile" // loads `Profile.mustache`
37 bundle:nil
38 error:NULL];
39 ```
f52da9d2 »
2012-01-24 README+RELEASE_NOTES for GRMustacheNumberFormatterHelper and GRMustac…
40
559f6003 »
2012-05-08 CocoaPods support
41
634ad411 »
2012-03-08 wording
42 Documentation
43 -------------
44
d67b4cc3 »
2012-08-21 Guides/helpers.md refactoring + Insert Guides/localization.md in the …
45 Documentation starts here: [Guides/introduction.md](GRMustache/blob/master/Guides/introduction.md).
e8f9e1ea »
2012-07-01 Reorganize documentation
46
92288355 »
2012-03-13 Common use cases right in the README
47
48 FAQ
49 ---
50
caedcda3 »
2012-06-16 Wording consistency
51 - **Q: How do I render array indexes?**
92288355 »
2012-03-13 Common use cases right in the README
52
da9cdeb7 »
2012-05-26 indexes.md guide
53 A: Check [Guides/sample_code/indexes.md](GRMustache/blob/master/Guides/sample_code/indexes.md)
92288355 »
2012-03-13 Common use cases right in the README
54
d67b4cc3 »
2012-08-21 Guides/helpers.md refactoring + Insert Guides/localization.md in the …
55 - **Q: How do I format numbers and dates?**
b4832514 »
2012-06-16 Filters FAQ
56
d67b4cc3 »
2012-08-21 Guides/helpers.md refactoring + Insert Guides/localization.md in the …
57 A: Check [Guides/sample_code/number_formatting.md](GRMustache/blob/master/Guides/sample_code/number_formatting.md)
58
59 - **Q: How do I localize templates?**
60
61 A: Check [Guides/sample_code/localization.md](GRMustache/blob/master/Guides/sample_code/localization.md)
b4832514 »
2012-06-16 Filters FAQ
62
71d71cc9 »
2012-07-21 typo
63 - **Q: Does GRMustache provide any layout facility?**
1aedee01 »
2012-07-03 Link to layout sample project from the README
64
65 A: No. But there is a [sample Xcode project](GRMustache/tree/master/Guides/sample_code/layout) that demonstrates how to do that.
66
92288355 »
2012-03-13 Common use cases right in the README
67 - **Q: How do I render default values for missing keys?**
68
69 A: This can be done by providing your template a delegate: check [Guides/delegate.md](GRMustache/blob/master/Guides/delegate.md).
70
95ee6b0d »
2012-07-06 Typo
71 - **Q: I have a bunch of templates and partials that live in memory / a database / the cloud / wherever.**
c1bd462e »
2012-03-13 README
72
1d73c2b8 »
2012-03-24 GRMustacheTemplateRepository guides
73 A: Check [Guides/template_repositories.md](GRMustache/blob/master/Guides/template_repositories.md).
c1bd462e »
2012-03-13 README
74
4973f8c0 »
2012-03-14 README
75 - **Q: What is this NSUndefinedKeyException stuff?**
76
77 A: When GRMustache has to try several objects until it finds the one that provides a `{{key}}`, several NSUndefinedKeyException are raised and caught. Let us double guess you: it's likely that you wish Xcode would stop breaking on those exceptions. This use case is covered in [Guides/runtime/context_stack.md](GRMustache/blob/master/Guides/runtime/context_stack.md).
92288355 »
2012-03-13 Common use cases right in the README
78
9f3dcafb »
2012-07-23 Answer to FAQ: "Why does GRMustache need JRSwizzle?"
79 - **Q: Why does GRMustache need JRSwizzle?**
80
81 A: GRMustache will [swizzle](http://www.mikeash.com/pyblog/friday-qa-2010-01-29-method-replacement-for-fun-and-profit.html) the implementation of `valueForUndefinedKey:` in the NSObject and NSManagedObject classes when you invoke `[GRMustache preventNSUndefinedKeyExceptionAttack]`. This use case is covered in [Guides/runtime/context_stack.md](GRMustache/blob/master/Guides/runtime/context_stack.md). The dreadful swizzling happens in [src/classes/GRMustacheNSUndefinedKeyExceptionGuard.m](GRMustache/blob/master/src/classes/GRMustacheNSUndefinedKeyExceptionGuard.m).
82
92288355 »
2012-03-13 Common use cases right in the README
83
84 Contribution wish-list
85 ----------------------
86
87 I wish somebody would review my non-native English, and clean up the guides, if you ask.
f52da9d2 »
2012-01-24 README+RELEASE_NOTES for GRMustacheNumberFormatterHelper and GRMustac…
88
f5fb58fb »
2012-03-02 wording
89
c0e699e7 »
2012-02-02 wip
90 Forking
91 -------
92
d8957abf »
2012-03-05 renamed guides to Guides
93 Please fork. You'll learn useful information in [Guides/forking.md](GRMustache/blob/master/Guides/forking.md).
c0e699e7 »
2012-02-02 wip
94
f5fb58fb »
2012-03-02 wording
95
e4bd74e3 »
2010-11-01 License
96 License
97 -------
98
99 Released under the [MIT License](http://en.wikipedia.org/wiki/MIT_License)
100
4f1625f4 »
2012-01-24 guides
101 Copyright (c) 2012 Gwendal Roué
e4bd74e3 »
2010-11-01 License
102
103 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
104
105 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
106
107 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
108
Something went wrong with that request. Please try again.