Skip to content
Newer
Older
100644 266 lines (150 sloc) 8.34 KB
0219c22 @groue v1.0.0
authored
1 GRMustache Release Notes
2 ========================
3
31100d3 @groue v1.10.0
authored
4 ## v1.10
5
6 - **Improved Handlebars.js support**
7
8 Now `foo/bar` and `foo.bar` syntaxes are both supported.
9
8020800 @groue v1.9.0
authored
10 ## v1.9
11
3293103 @groue Introduce GRMustacheNumberFormatterHelper
authored
12 - **Better lambda encapsulation with classes conforming to the GRMustacheHelper protocol.**
13 - **Format all numbers in a section with GRMustacheNumberFormatterHelper**
f52da9d @groue README+RELEASE_NOTES for GRMustacheNumberFormatterHelper and GRMustac…
authored
14 - **Format all dates in a section with GRMustacheDateFormatterHelper**
8020800 @groue v1.9.0
authored
15
16 New protocol:
17
3293103 @groue Introduce GRMustacheNumberFormatterHelper
authored
18 - `GRMustacheHelper`
19
f52da9d @groue README+RELEASE_NOTES for GRMustacheNumberFormatterHelper and GRMustac…
authored
20 New classes:
3293103 @groue Introduce GRMustacheNumberFormatterHelper
authored
21
22 - `GRMustacheNumberFormatterHelper`
f52da9d @groue README+RELEASE_NOTES for GRMustacheNumberFormatterHelper and GRMustac…
authored
23 - `GRMustacheDateFormatterHelper`
8020800 @groue v1.9.0
authored
24
8704042 @groue v1.8.6
authored
25 ## v1.8.6
26
27 Fixed bug in [GRMustacheTemplate renderObjects:...]
28
d209bef @groue v1.8.5
authored
29 ## v1.8.5
30
31 Added missing symbols from lib/libGRMustache1-ios3.a
32
edf6200 @groue v1.8.4
authored
33 ## v1.8.4
34
d209bef @groue v1.8.5
authored
35 Added missing symbols from lib/libGRMustache1-ios3.a and lib/libGRMustache1-ios4.a
edf6200 @groue v1.8.4
authored
36
6a23fe6 @groue v1.8.3
authored
37 ## v1.8.3
38
39 Availability fixes.
40
8abbac9 @groue v1.8.2
authored
41 ## v1.8.2
42
43 Better testing of public API thanks to availability macros.
44
b643aa1 @groue v1.8.1
authored
45 ## v1.8.1
46
47 Bug fixes
48
18dc85c @groue v1.8.0
authored
49 ## v1.8
50
8abbac9 @groue v1.8.2
authored
51 **GRMustache now supports the [Mustache specification v1.1.2](https://github.com/mustache/spec).**
52
53 New type and enum:
54
55 enum {
56 GRMustacheTemplateOptionNone = 0,
57 GRMustacheTemplateOptionMustacheSpecCompatibility = 0x01,
58 };
59
60 typedef NSUInteger GRMustacheTemplateOptions;
61
62 New GRMustache methods:
63
64 - `+ (GRMustacheTemplateOptions)defaultTemplateOptions;`
65 - `+ (void)setDefaultTemplateOptions:(GRMustacheTemplateOptions)templateOptions;`
66
67 New GRMustacheTemplate methods:
68
69 - `+ (id)parseString:(NSString *)templateString options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
70 - `+ (id)parseContentsOfURL:(NSURL *)url options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
71 - `+ (id)parseContentsOfFile:(NSString *)path options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
72 - `+ (id)parseResource:(NSString *)name bundle:(NSBundle *)bundle options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
73 - `+ (id)parseResource:(NSString *)name withExtension:(NSString *)ext bundle:(NSBundle *)bundle options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
74 - `+ (NSString *)renderObject:(id)object fromString:(NSString *)templateString options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
75 - `+ (NSString *)renderObject:(id)object fromContentsOfURL:(NSURL *)url options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
76 - `+ (NSString *)renderObject:(id)object fromContentsOfFile:(NSString *)path options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
77 - `+ (NSString *)renderObject:(id)object fromResource:(NSString *)name bundle:(NSBundle *)bundle options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
78 - `+ (NSString *)renderObject:(id)object fromResource:(NSString *)name withExtension:(NSString *)ext bundle:(NSBundle *)bundle options:(GRMustacheTemplateOptions)options error:(NSError **)outError;`
79
80 New GRMustacheTemplateLoader methods:
81
82 - `+ (id)templateLoaderWithBaseURL:(NSURL *)url options:(GRMustacheTemplateOptions)options;`
83 - `+ (id)templateLoaderWithBaseURL:(NSURL *)url extension:(NSString *)ext options:(GRMustacheTemplateOptions)options;`
84 - `+ (id)templateLoaderWithBaseURL:(NSURL *)url extension:(NSString *)ext encoding:(NSStringEncoding)encoding options:(GRMustacheTemplateOptions)options;`
85 - `+ (id)templateLoaderWithDirectory:(NSString *)path options:(GRMustacheTemplateOptions)options;`
86 - `+ (id)templateLoaderWithDirectory:(NSString *)path extension:(NSString *)ext options:(GRMustacheTemplateOptions)options;`
87 - `+ (id)templateLoaderWithDirectory:(NSString *)path extension:(NSString *)ext encoding:(NSStringEncoding)encoding options:(GRMustacheTemplateOptions)options;`
88 - `+ (id)templateLoaderWithBundle:(NSBundle *)bundle options:(GRMustacheTemplateOptions)options;`
89 - `+ (id)templateLoaderWithBundle:(NSBundle *)bundle extension:(NSString *)ext options:(GRMustacheTemplateOptions)options;`
90 - `+ (id)templateLoaderWithBundle:(NSBundle *)bundle extension:(NSString *)ext encoding:(NSStringEncoding)encoding options:(GRMustacheTemplateOptions)options;`
91
18dc85c @groue v1.8.0
authored
92
d08841f @groue v1.7.4
authored
93 ## v1.7.4
94
95 Bug fix: avoid crashing when one provides uninitialized NSError* to GRMustache.
96
8059b38 @groue v1.7.3
authored
97 ## v1.7.3
98
99 One no longer needs to add `-all_load` to the "Other Linker Flags" target option tu use GRMustache static libraries.
100
6d6e020 @groue v1.7.2
authored
101 ## v1.7.2
102
103 - Fixed [issue #6](https://github.com/groue/GRMustache/issues/6)
104 - `[GRMustache preventNSUndefinedKeyExceptionAttack]` no longer prevents the rendering of `nil`.
105
cd4de9d @groue v1.7.1
authored
106 ## v1.7.1
107
108 Added missing header file
109
e5d100a @groue v1.7.0
authored
110 ## v1.7.0
111
112 **GRMustache now ships as a static library.**
113
114 See the [Embedding](https://github.com/groue/GRMustache/wiki/Embedding) wiki page in order to see how to embed GRMustache in your project.
115
116 Besides, the NSUndefinedKeyException silencing is no longer activated by the DEBUG macro. You now have to explicitely call the `[GRMustache preventNSUndefinedKeyExceptionAttack]` method. For more details, see the [Avoid the NSUndefinedKeyException attack](https://github.com/groue/GRMustache/wiki/Avoid-the-NSUndefinedKeyException-attack) wiki page.
117
4373916 @groue v1.6.2
authored
118 ## v1.6.2
119
120 **LLVM3 compatibility**
121
f19ba84 @groue v1.6.1
authored
122 ## v1.6.1
123
124 The NSUndefinedKeyException silencing activated by the DEBUG macro applies to NSManagedObject instances (see the [Avoid the NSUndefinedKeyException attack](https://github.com/groue/GRMustache/wiki/Avoid-the-NSUndefinedKeyException-attack) wiki page).
125
6b1dbf7 @groue v1.6.0
authored
126 ## v1.6.0
127
128 **Reduced memory footprint**
129
8abbac9 @groue v1.8.2
authored
130 New GRMustacheTemplateLoader methods:
6b1dbf7 @groue v1.6.0
authored
131
132 - `+ (id)templateLoaderWithDirectory:(NSString *)path;`
133 - `+ (id)templateLoaderWithDirectory:(NSString *)path extension:(NSString *)ext;`
134 - `+ (id)templateLoaderWithDirectory:(NSString *)path extension:(NSString *)ext encoding:(NSStringEncoding)encoding;`
135
8abbac9 @groue v1.8.2
authored
136 Deprecated GRMustacheTemplateLoader methods (replace `BasePath` with `Directory`):
6b1dbf7 @groue v1.6.0
authored
137
138 - `+ (id)templateLoaderWithBasePath:(NSString *)path;`
139 - `+ (id)templateLoaderWithBasePath:(NSString *)path extension:(NSString *)ext;`
140 - `+ (id)templateLoaderWithBasePath:(NSString *)path extension:(NSString *)ext encoding:(NSStringEncoding)encoding;`
141
142 Bug fixes around the NSUndefinedKeyException handling when the `DEBUG` macro is set (thanks to [Mike Ash](http://www.mikeash.com/)).
143
499face @groue v1.5.2
authored
144 ## v1.5.2
145
f19ba84 @groue v1.6.1
authored
146 The `DEBUG` macro makes GRMustache raise much less NSUndefinedKeyException (see the [Avoid the NSUndefinedKeyException attack](https://github.com/groue/GRMustache/wiki/Avoid-the-NSUndefinedKeyException-attack) wiki page).
499face @groue v1.5.2
authored
147
e0a103f @groue v1.5.1
authored
148 ## v1.5.1
149
4031037 @groue RELEASE_NOTES wording
authored
150 Bug fixes
e0a103f @groue v1.5.1
authored
151
3de3613 @groue v1.5.0
authored
152 ## v1.5.0
0915e91 @groue v1.4.1
authored
153
4031037 @groue RELEASE_NOTES wording
authored
154 **API simplification**
155
c5761e8 @groue RELEASE_NOTES wording
authored
156 New GRMustacheTemplate method:
157
158 - `- (NSString *)renderObjects:(id)object, ...;`
159
160 New GRMustacheSection method:
161
162 - `- (NSString *)renderObjects:(id)object, ...;`
163
164 New class:
165
166 - `GRMustacheBlockHelper`
167
168 Deprecated class (use `id` instead when refering to a context, and use `renderObjects:` methods instead of instanciating one):
169
170 - `GRMustacheContext`
171
172 Deprecated function (use GRMustacheBlockHelper instead):
173
174 - `id GRMustacheLambdaBlockMake(NSString *(^block)(GRMustacheSection*, GRMustacheContext*));`
0915e91 @groue v1.4.1
authored
175
a1f2cf1 @groue v1.4.0
authored
176 ## v1.4.0
177
4031037 @groue RELEASE_NOTES wording
authored
178 **iOS 3.0 support**
c5761e8 @groue RELEASE_NOTES wording
authored
179
180 New `GRMustacheTemplate` methods:
181
182 - `+ (NSString *)renderObject:(id)object fromContentsOfFile:(NSString *)path error:(NSError **)outError;`
183 - `+ (id)parseContentsOfFile:(NSString *)path error:(NSError **)outError;`
184
8abbac9 @groue v1.8.2
authored
185 New `GRMustacheTemplateLoader` methods:
c5761e8 @groue RELEASE_NOTES wording
authored
186
187 - `+ (id)templateLoaderWithBasePath:(NSString *)path;`
188 - `+ (id)templateLoaderWithBasePath:(NSString *)path extension:(NSString *)ext;`
189 - `+ (id)templateLoaderWithBasePath:(NSString *)path extension:(NSString *)ext encoding:(NSStringEncoding)encoding;`
a1f2cf1 @groue v1.4.0
authored
190
de489d5 @groue v1.3.3
authored
191 ## v1.3.3
192
4031037 @groue RELEASE_NOTES wording
authored
193 Bug fixes
de489d5 @groue v1.3.3
authored
194
be39647 @groue v1.3.2
authored
195 ## v1.3.2
196
4031037 @groue RELEASE_NOTES wording
authored
197 Bug fixes
be39647 @groue v1.3.2
authored
198
7f1e927 @groue v1.3.1
authored
199 ## v1.3.1
200
4031037 @groue RELEASE_NOTES wording
authored
201 Bug fixes
7f1e927 @groue v1.3.1
authored
202
b03eb3c @groue v1.3.0
authored
203 ## v1.3.0
204
4031037 @groue RELEASE_NOTES wording
authored
205 **Block-less API for helpers.**
b03eb3c @groue v1.3.0
authored
206
c5761e8 @groue RELEASE_NOTES wording
authored
207 New classes:
208
209 - `GRMustacheContext`
210 - `GRMustacheSection`
b03eb3c @groue v1.3.0
authored
211
c5761e8 @groue RELEASE_NOTES wording
authored
212 New functions:
a368aaf @groue v1.2.1
authored
213
c5761e8 @groue RELEASE_NOTES wording
authored
214 - `id GRMustacheLambdaBlockMake(NSString *(^block)(GRMustacheSection*, GRMustacheContext*));`
215
216 Deprecated functions (use GRMustacheLambdaBlockMake instead):
217
218 - `GRMustacheLambda GRMustacheLambdaMake(NSString *(^block)(NSString *(^)(id object), id, NSString *));`
a368aaf @groue v1.2.1
authored
219
c88c5c6 @groue v1.2.0
authored
220 ## v1.2.0
221
4031037 @groue RELEASE_NOTES wording
authored
222 **iOS 4.0 support**
c5761e8 @groue RELEASE_NOTES wording
authored
223
224 Deprecated class (use `[NSNumber numberWithBool:YES]` instead of `[GRYes yes]`):
225
226 - `GRYes`
227
228 Deprecated class (use `[NSNumber numberWithBool:NO]` instead of `[GRNo no]`):
229
230 - `GRNo`
c88c5c6 @groue v1.2.0
authored
231
16c756d @groue v1.1.6
authored
232 ## v1.1.6
233
c5761e8 @groue RELEASE_NOTES wording
authored
234 GRMustacheTemplateLoader subclasses can now rely on an immutable `extension` property.
16c756d @groue v1.1.6
authored
235
0805e50 @groue v1.1.5
authored
236 ## v1.1.5
237
4031037 @groue RELEASE_NOTES wording
authored
238 Bug fixes
0805e50 @groue v1.1.5
authored
239
8e257be @groue v1.1.4
authored
240 ## v1.1.4
241
4031037 @groue RELEASE_NOTES wording
authored
242 Bug fixes
8e257be @groue v1.1.4
authored
243
3f89a0b @groue v1.1.3
authored
244 ## v1.1.3
245
4031037 @groue RELEASE_NOTES wording
authored
246 **Rendering performance improvement**
3f89a0b @groue v1.1.3
authored
247
8dbe23f @groue v1.1.2
authored
248 ## v1.1.2
249
4031037 @groue RELEASE_NOTES wording
authored
250 **Template compiling performance improvement**
8dbe23f @groue v1.1.2
authored
251
161c96c @groue v1.1.1
authored
252 ## v1.1.1
253
4031037 @groue RELEASE_NOTES wording
authored
254 Bug fixes
161c96c @groue v1.1.1
authored
255
6ede60b @groue v1.1.0
authored
256 ## v1.1.0
0219c22 @groue v1.0.0
authored
257
c5761e8 @groue RELEASE_NOTES wording
authored
258 New methods:
259
260 - `[GRYes yes]` responds to `boolValue`
261 - `[GRNo no]` responds to `boolValue`
6ede60b @groue v1.1.0
authored
262
263 ## v1.0.0
264
4031037 @groue RELEASE_NOTES wording
authored
265 **First versioned release**
Something went wrong with that request. Please try again.