Debian Codegraph @

CHANGELOG.md

raw symbols SCIP
1 # Change Log
2
3 ## [5.1.2](https://github.com/sunng87/handlebars-rust/compare/5.1.1...5.1.2) - 2024-03-24
4
5 * [Changed] Improved error message and syntax rule naming [#638]
6 * [Changed] Updated `heck` to 0.5 [#635]
7
8 ## ~~[5.1.1](https://github.com/sunng87/handlebars-rust/compare/5.1.0...5.1.1) - 2024-01-18~~ Yanked
9
10 * [Changed] Turned off pub access of `chain` in `HelperTemplate`
11
12 ## [5.1.0](https://github.com/sunng87/handlebars-rust/compare/5.0.0...5.1.0) - 2024-01-17
13
14 * [Added] Chained `else if` block support [#629]
15
16 ## [5.0.0](https://github.com/sunng87/handlebars-rust/compare/4.3.4...5.0.0) - 2023-12-31
17
18 * [Added] public mutable access to local variables in `BlockContext` [#533]
19 * [Changed] Simplified lifetime specifiers for `Helper`, `ScopedJson` and some
20 other related types and functions. [#532]
21 * [Changed] Updated `TemplateError` to reduce its size. Direct field access is
22 removed in favor of access methods
23 * [Changed] Introducing `RenderErrorReason` for typed render error
24 * [Changed] Changed `register_template_directory` api for more customizations
25 #[610]
26 * [Changed] Updated rust-embed to 8.0
27
28 ## [4.3.4](https://github.com/sunng87/handlebars-rust/compare/4.3.3...4.3.4) - 2022-09-11
29
30 * [Added] New `write_fmt` function for `Output` [#522]
31 * [Added] `reason()` method for `TemplateError` to access underlying reason,
32 this replaces original direct `.reason` access.
33 * [Changed] Direct access to `TemplateError`'s `reason` field is depreacted will
34 be removed in future.
35
36 ## [4.3.3](https://github.com/sunng87/handlebars-rust/compare/4.3.2...4.3.3) - 2022-07-20
37
38 * [Fixed] Disable partial expression indentation with `{{~> partial}}` to
39 bring behavior closer in line with original javascript version. [#518]
40 * [Fixed] Support for using partial context together with partial parameters
41 [#520]
42
43 ## [4.3.2](https://github.com/sunng87/handlebars-rust/compare/4.3.1...4.3.2) - 2022-07-14
44
45 * [Added] Render functions that reuse `Context` for custom `std::io::Write`:
46 `render_with_context_to_write` and `render_template_with_context_to_write`
47
48 ## [4.3.1](https://github.com/sunng87/handlebars-rust/compare/4.3.0...4.3.1) - 2022-06-09
49
50 * [Added] Added support for `{{~{variable}~}}` syntax [#509]
51
52 ## [4.3.0](https://github.com/sunng87/handlebars-rust/compare/4.2.2...4.3.0) - 2022-05-18
53
54 * [Changed] update MSRV to 1.57 as rhai requires
55 * [Fixed] Reimplemented indent support for partial expression `{{>
56 partial}}`, which is introduced in 4.2.0. The new implementation is
57 aligned with original javascript version, that every text line
58 generated from partial are indented as `{{> partial}}`
59 does. `prevent_indent` will turn-off this feature. [#505]
60 * [Changed] changed error support library from quick_error to
61 thiserror
62
63 ## [4.2.2](https://github.com/sunng87/handlebars-rust/compare/4.2.1...4.2.2) - 2022-03-09
64
65 * [Fixed] Block param scope leaked into partials [#496]
66 * [Changed] Use Rust 2021 edition and update MSRV to 1.56
67
68 ## [4.2.1](https://github.com/sunng87/handlebars-rust/compare/4.2.0...4.2.1) - 2022-01-17
69
70 * [Fixed] Nested partial `@partial-block` referencing issue [#488]
71 * [Fixed] Docs generation on docs.rs for `rust-embed` feature
72
73 ## [4.2.0](https://github.com/sunng87/handlebars-rust/compare/4.1.6...4.2.0) - 2022-01-05
74
75 * [Added] RustEmbed support for loading templates from [#484]
76 * [Fixed] Parser support for variables begins with digit [#479]
77 * [Changed] Keep indent whitespaces for partial expression `{{>
78 partial}}` as default in handlebarsjs. A new option `prevent_indent`
79 is provided on `Handlebars` to turn off this behaviour. [#486]
80 * [Changed] Update MSRV to 1.51 due to dependency changes
81
82 ## [4.1.6](https://github.com/sunng87/handlebars-rust/compare/4.1.5...4.1.6) - 2021-12-03
83
84 * [Added] Create `Context` from owned `serde_json::Value` [#477]
85
86 ## [4.1.5](https://github.com/sunng87/handlebars-rust/compare/4.1.4...4.1.5) - 2021-11-17
87
88 * [Fixed] Single-quote string literal is supported, again [#475]
89
90 ## [4.1.4](https://github.com/sunng87/handlebars-rust/compare/4.1.3...4.1.4) - 2021-11-06
91
92 * [Fixed] Corrected empty line stripping strategy [#473]
93
94 ## [4.1.3](https://github.com/sunng87/handlebars-rust/compare/4.1.2...4.1.3) - 2021-09-10
95
96 * [Added] `@last` variable for `each` block with object [#466]
97 * [Fixed] Missing whitespaces behind expression [#468]
98
99 ## [4.1.2](https://github.com/sunng87/handlebars-rust/compare/4.1.1...4.1.2) - 2021-08-11
100
101 * [Added] Support for generic types in `handlebars_helper!`.
102 * [Added] Getter and setter for rhai `Engine` from registry.
103 * [Fixed] Improve doc for `dev_mode` that it has to be enabled before
104 adding templates.
105
106 ## [4.1.1](https://github.com/sunng87/handlebars-rust/compare/4.1.0...4.1.1) - 2021-07-31
107
108 * [Changed] Update rhai to 1.0 [#455]
109 * [Fixed] Empty line stripping for partial include statement, and other corner cases [#458]
110
111 ## [4.1.0](https://github.com/sunng87/handlebars-rust/compare/4.0.1...4.1.0) - 2021-07-05
112
113 * [Added] export `StringOutput` as requested in #442
114 * [Changed] strict mode now applies to our helper macro `handlebars_helper!` and
115 built-in helpers based on it.
116 * [Fixed] Line stripping feature for standalone statment introduced in #404 is now
117 aligned with handlebarsjs. #448
118
119 ## [4.0.1](https://github.com/sunng87/handlebars-rust/compare/4.0.0...4.0.1) - 2021-06-15
120
121 * [Fixed] Each block render error with empty array or object [#445]
122
123 ## [4.0.0](https://github.com/sunng87/handlebars-rust/compare/3.4.0...4.0.0) - 2021-05-25
124
125 * [Added] `dev_mode` for registry: templates and scripts loaded from file are always
126 reloaded when dev mode enabled [#395]
127 * [Added] Registry is now `Clone` [#395]
128 * [Added] New built-in helper `len` [#421]
129 * [Changed] Updated `rhai` to 0.19 and then 0.20 [#391]
130 * [Changed] `#each` helper now renders else block for non-iterable data [#380]
131 * [Changed] `TemplateError` and `ScriptError` is now a cause of `RenderError` [#395]
132 * [Changed] Empty lines around block helpers are now stripped [#404]
133 * [Changed] **Breaking** `RenderContext::get_partial` now returns `Option<&Template>`
134 * [Changed] **Breaking** Capitalize names like `HtmlExpression` and `IoError` based on clippy recommendations [#424]
135 * [Changed] **Breaking** Improved return type of `call_inner` from `HelperDef` to avoid misleading [#437]
136 * [Fixed] reference starts with `null`, `true` and `false` were parsed incorrectly [#382]
137 * [Fixed] dir source path separator bug on windows [#389] [#405]
138 * [Fixed] stack overflow with nested `@partial-block` [#401]
139 * [Fixed] value access issue when upper block has a base value [#419]
140 * [Fixed] escape rules for Json string literal [#423]
141 * [Fixed] **Breaking** zero-arity subexpressions support [#433]
142 Zero-arity subexpression no longer resolved as variable. The behaviour is now aligned with handlebarsjs.
143 For instance, `{{(parent)}}` can no longer access `parent` field of the context object, use
144 `{{lookup this "parent"}}` instead. This change applies to partial inclusion, too.
145 * [Removed] **Breaking** option to disable source map is removed [#395]
146 * [Removed] **Breaking** `TemplateFileError` and `TemplateRenderError` are removed and merged into
147 `TemplateError` and `RenderError` [#395]
148
149 ## [3.5.5](https://github.com/sunng87/handlebars-rust/compare/3.5.4...3.5.5) - 2021-05-03
150
151 * [Fixed] Panic on reporting invalid tag name [#427]
152
153 ## [3.5.4](https://github.com/sunng87/handlebars-rust/compare/3.5.3...3.5.4) - 2021-03-27
154
155 * [Fixed] Json string literal with escape char [#422]
156
157 ## [3.5.3](https://github.com/sunng87/handlebars-rust/compare/3.5.2...3.5.3) - 2021-02-20
158
159 * [Fixed] value access issue when upper block has a base value [#419]
160
161 ## [3.5.2](https://github.com/sunng87/handlebars-rust/compare/3.5.1...3.5.2) - 2020-12-29
162
163 * [Fixed] allow `/` as trailing separator on Windows, backported from master [#405]
164
165 ## [3.5.1](https://github.com/sunng87/handlebars-rust/compare/3.5.0...3.5.1) - 2020-10-25
166
167 * [Fixed] dir source path separator bug on windows [#389]
168
169 ## [3.5.0](https://github.com/sunng87/handlebars-rust/compare/3.4.0...3.5.0) - 2020-09-23
170
171 * [Changed] `#each` helper now renders else block for non-iterable data [#380]
172 * [Fixed] reference starts with `null`, `true` and `false` were parsed incorrectly [#382]
173
174 ## [3.4.0](https://github.com/sunng87/handlebars-rust/compare/3.3.0...3.4.0) - 2020-08-14
175
176 * [Added] Debug log that can be turned on by using envlog or other implementation, to trace data resolution during rendering [#369]
177 * [Fixed] Derived value as block context base value [#343, #353]
178 * [Fixed] Partial name aligned with handlebars.js, added support for `.`, escape `[]` and string `''` name
179 * [Changed] HTML escape aligned with handlebars.js, added `=`, `\` and ``` [#366]
180 * [Changed] Update rhai to 0.18 [#370]
181 * [Fixed] Result of simple helper is now escaped [#373]
182
183 ## [3.3.0](https://github.com/sunng87/handlebars-rust/compare/3.2.1...3.3.0) - 2020-07-18
184
185 * [Added] Added two new APIs to reuse `Context` for rendering [#352]
186 * [Changed] Update rhai to 0.17 [#354]
187 * [Fixed] Fixed mustache.js html expression support, which is "&" instead of "$"
188
189 ## [3.2.1](https://github.com/sunng87/handlebars-rust/compare/3.2.0...3.2.1) - 2020-06-28
190
191 * [Fixed] block context leak introduced in 3.2.0, #346 [#349]
192
193 ## [3.2.0](https://github.com/sunng87/handlebars-rust/compare/3.1.0...3.2.0) - 2020-06-28
194
195 * [Added] API to register an pre-processed template [#331]
196 * [Added] Helper macro now has support for named argument and helepr hash [#338]
197 * [Added] Added support for `$` expression that is part of mustache.js [#339]
198 * [Changed] Update rhai to 0.15 [#330]
199 * [Fixed] else block for `each` [#344]
200
201 ## [3.1.0](https://github.com/sunng87/handlebars-rust/compare/3.0.1...3.1.0) - 2020-06-01
202
203 * [Added] All new rhai script helper
204 * [Added] multiple parameter support for log helper
205 * [Fixed] helper lookup priority
206 * [Changed] `Send` and `Sync` are not required for RenderContext local helper [#319]
207 * [Fixed] partial block when using path as name [#321]
208
209 ## [3.0.1](https://github.com/sunng87/handlebars-rust/compare/3.0.0...3.0.1) - 2020-01-25
210
211 * [Fixed] Slash in partial path causing syntax error #313
212
213 ## [3.0.0](https://github.com/sunng87/handlebars-rust/compare/2.0.3...3.0.0) - 2020-01-24
214
215 * [Changed] Added lifetime specifier to `Handlebars` structure allowing helper definition to have non-static borrowed data #282
216 * [Changed] Removed hashbrown dependency #279
217 * [Changed] Features has been reorganized. `dir_source` were turned off by default. #289
218 * [Changed] Refactored `RenderContext` API to improve performance up to 5x over `2.0`
219 * [Added] Add new `BlockContext` API for helper developer to store block scope state #307
220 * [Fixed] `RenderError` should be `Send` and `Sync` #304
221
222 ## [2.0.4](https://github.com/sunng87/handlebars-rust/compare/2.0.3...2.0.4) - 2020-01-06
223
224 * [Fixed] `RenderError` should be `Send` and `Sync` #304
225
226 ## [2.0.3](https://github.com/sunng87/handlebars-rust/compare/2.0.2...2.0.3) - 2020-01-04
227
228 * [Fixed] deprecated warnings on rust 1.42 nightly, due to changes in
229 `Error` trait
230
231 ## [2.0.2](https://github.com/sunng87/handlebars-rust/compare/2.0.1...2.0.2) - 2019-09-06
232
233 * [Changed] Extended `eq` and `ne` helper for all json types #287
234 * [Changed] Removed `regex` and `lazy_static` crate to optimize dependency tree
235
236 ## [2.0.1](https://github.com/sunng87/handlebars-rust/compare/2.0.0...2.0.1) - 2019-07-12
237 * [Changed] Fixed issue with block context #275
238 * [Changed] Added support for array index in block context #276
239 * [Changed] Deprecated RenderContext `concat_path`
240 * [Changed] Update hashbrown to 0.5.0
241
242 ## [2.0.0](https://github.com/sunng87/handlebars-rust/compare/2.0.0-beta3...2.0.0) - 2019-07-02
243 * [Changed] Fixed more dyn trait warnings
244 * [Changed] #80 Fixed support for zero-param helper
245 * [Changed] Changed minimum Rust version to 1.32 as required by
246 getrandom crate
247
248 ## [2.0.0-beta.3](https://github.com/sunng87/handlebars-rust/compare/2.0.0-beta1...2.0.0-beta.3) - 2019-06-24
249
250 * [Changed] Block parameter revamp, fixed cases for #260 and #264
251 * [Changed] #265 Fixed block parameter order in `each` helper
252 * [Changed] #266 Accept any JSON value in boolean helpers
253 * [Changed] `RenderContext` API update, `evaluate_absolute` removed,
254 use `@root` instead
255
256 ## [2.0.0-beta.1](https://github.com/sunng87/handlebars-rust/compare/1.1.0...2.0.0-beta.1) - 2019-03-16
257
258 * [Changed] Everything changed in yanked 1.2.0
259 * [Changed] With Pest updated to 2.1, our minimal rust version is set
260 to 1.31
261 * [Changed] Using hashbrown `HashMap` internally and externally,
262 performance improvement up to 10%
263 * [Changed] strict mode also apply to return value of helper expression
264
265 ## [1.2.0](https://github.com/sunng87/handlebars-rust/compare/1.1.0...1.2.0) - 2018-12-15
266
267 *This release is yanked.*
268
269 * [Changed] Using rust 2018 edition
270 * [Changed] Improve strict mode and only raise error when accessing
271 missing fields in expression
272 * [Changed] Improved `get_helper` and `get_decorator` return type
273
274 ## [1.1.0](https://github.com/sunng87/handlebars-rust/compare/1.0.5...1.1.0) - 2018-10-24
275
276 * [Added] New option `includeZero` for `if` helper
277 * [Added] New option `level` for `log` helper
278 * [Changed] Updated Pest to 2.0, moving minimal Rust version to 1.30
279
280 ## [1.0.5](https://github.com/sunng87/handlebars-rust/compare/1.0.4...1.0.5) - 2018-10-04
281
282 * [Changed] Added feature `no_logging` for using handlebars in a
283 logging provider.
284
285 ## [1.0.4](https://github.com/sunng87/handlebars-rust/compare/1.0.3...1.0.4) - 2018-09-21
286
287 * [Changed] Fixed build on wasm
288 * [Changed] Added support for single-quote Json string literal
289
290 ## [1.0.3](https://github.com/sunng87/handlebars-rust/compare/1.0.2...1.0.3) - 2018-08-29
291
292 * [Changed] Fixed build on Rust 1.23.0
293
294 ## [1.0.2](https://github.com/sunng87/handlebars-rust/compare/1.0.1...1.0.2) - 2018-08-27
295
296 * [Changed] Update minimal dependency versions
297
298 ## [1.0.1](https://github.com/sunng87/handlebars-rust/compare/1.0.0...1.0.1) - 2018-08-16
299
300 * [Changed] Added hidden/temp file filter to directory register
301
302 ## [1.0.0](https://github.com/sunng87/handlebars-rust/compare/0.32.4...1.0.0) - 2018-07-18
303
304 * [Changed] Helper API finalized and new output API
305 * [Changed] New internal value API, reduced clone cost
306 * [Added] Helper macro
307 * [Added] New built-in helpers: `gt`, `lt` and some more
308 * [Added] Register template folder
309
310 ## [0.32.4](https://github.com/sunng87/handlebars-rust/compare/0.32.3...0.32.4) - 2018-05-23
311
312 * [Changed] Keep compatibility with pre-1.26 rust by removing `impl
313 Trait` on parameters
314
315 ## [0.32.3](https://github.com/sunng87/handlebars-rust/compare/0.32.2...0.32.3) - 2018-05-21
316
317 * [Changed] Fixed escape syntax
318
319 ## [0.32.2](https://github.com/sunng87/handlebars-rust/compare/0.32.1...0.32.2) - 2018-05-09
320
321 * [Changed] Fixed issue with processing handlebars comment
322
323 ## [0.32.1](https://github.com/sunng87/handlebars-rust/compare/0.32.0...0.32.1) - 2018-05-02
324
325 * [Changed] Regex 1.0
326
327 ## [0.32.0](https://github.com/sunng87/handlebars-rust/compare/0.30.1...0.32.0) - 2018-02-16
328
329 * [Added] Strict mode that raises `RenderError` on accessing
330 non-existed field or array index.
331
332 ## [0.31.0](https://github.com/sunng87/handlebars-rust/compare/0.30.1...0.31.0) - 2018-02-09
333 * [Changed] Fixed handlebars comment support, added html comment output
334 * [Changed] Removed some wasted string clones
335
336 ## [0.30.1](https://github.com/sunng87/handlebars-rust/compare/0.30.0...0.30.1) - 2018-01-31
337 * [Changed] Added `Debug` for public types
338
339 ## [0.30.0](https://github.com/sunng87/handlebars-rust/compare/0.30.0-beta.5...0.30.0) - 2018-01-21
340 * [Changed] Use pest 1.0
341
342 ## [0.30.0-beta.5](https://github.com/sunng87/handlebars-rust/compare/0.30.0-beta.4...0.30.0-beta.5) - 2018-01-19
343
344 * [Changed] Improve `TemplateError` display. Now includes a segment of
345 template string.
346 * [Changed] Updated `lazy_static` to 1.0
347 * [Changed] Renamed some render functions names.
348
349 ## [0.30.0-beta.4](https://github.com/sunng87/handlebars-rust/compare/0.30.0-beta.3...0.30.0-beta.4) - 2017-11-20
350 * [Changed] Added `Sync` to the nested error of `RenderError`
351
352 ## [0.30.0-beta.3](https://github.com/sunng87/handlebars-rust/compare/0.30.0-beta.2...0.30.0-beta.3) - 2017-11-16
353 * [Changed] Fixed issue `template_render` methods doesn't respect `source_map` setting
354
355 ## [0.30.0-beta.2](https://github.com/sunng87/handlebars-rust/compare/0.30.0-beta.1...0.30.0-beta.2) - 2017-10-07
356 * [Changed] Fixed parsing keywords like `as`
357
358 ## [0.30.0-beta.1](https://github.com/sunng87/handlebars-rust/compare/0.29.1...0.30.0-beta.1) - 2017-10-03
359
360 * [Changed] Upgrade pest to 1.0
361 * [Changed] Fixed template parsing issue when parameter starts with "as"
362 * [Changed] Added new HelperDef function to return JSON value
363 * [Changed] Added support for @root
364
365 ## [0.29.1](https://github.com/sunng87/handlebars-rust/compare/0.29.0...0.29.1) - 2017-09-01
366
367 * [Changed] Remove `debug!` logging from render to avoid conflict when
368 using handlebars as logging backend
369
370 ## [0.29.0](https://github.com/sunng87/handlebars-rust/compare/0.28.3...0.29.0) - 2017-08-23
371
372 * [Changed] Align JSON path with original JavaScript implementation
373
374 ## [0.28.3](https://github.com/sunng87/handlebars-rust/compare/0.28.2...0.28.3) - 2017-08-02
375
376 * [Changed] fixed support for escape, again
377
378 ## [0.28.2](https://github.com/sunng87/handlebars-rust/compare/0.28.1...0.28.2) - 2017-08-01
379
380 * [Changed] Fixed support for escape `\\{{`. [#170](https://github.com/sunng87/handlebars-rust/issues/170)
381
382 ## [0.28.1](https://github.com/sunng87/handlebars-rust/compare/0.28.0...0.28.1) - 2017-07-16
383
384 * [Changed] Mark `RenderError` with `Send` trait
385
386 ## [0.28.0](https://github.com/sunng87/handlebars-rust/compare/0.27.0...0.28.0) - 2017-07-15
387
388 * [Changed] Fixed performance issue discussed in [#166](https://github.com/sunng87/handlebars-rust/issues/166)
389 * [Added] Added error cause `RenderError`
390
391 ## [0.27.0](https://github.com/sunng87/handlebars-rust/compare/0.26.2...0.27.0) - 2017-06-03
392
393 * [Changed] `partial_legacy` is dropped
394 * [Changed] `context.navigate` now returns a `Result<&Json,RenderError>`. Error is raised when
395 given path cannot be not parsed.
396 * [Changed] removed `context::extend` because it's like to ruin your context outside the helper.
397 * [Changed] `RenderContext` now owns `Context`, you can host a new Context for particular block
398 helper.
399 * [Changed] Added some convenience functions to `RenderContext`. However, `RenderContext` may
400 still change in future release.
401
402 ## [0.26.1](https://github.com/sunng87/handlebars-rust/compare/0.25.3...0.26.1) - 2017-04-23
403
404 * [Changed] Updated to Serde 1.0
405 * [Changed] Dropped rustc_serialize, serde is now the default type system
406
407 ## [0.25.3](https://github.com/sunng87/handlebars-rust/compare/0.25.2...0.25.3) - 2017-04-19
408
409 * [Changed] Fixed path up [#147](https://github.com/sunng87/handlebars-rust/issues/147)
410 * [Changed] Fixed duplicated template inclusion [#146](https://github.com/sunng87/handlebars-rust/issues/146)
411
412 ## [0.25.2](https://github.com/sunng87/handlebars-rust/compare/0.25.1...0.25.2) - 2017-03-22
413
414 * [Changed] Fixed bug when including two partials with same name [#143](https://github.com/sunng87/handlebars-rust/issues/143)
415
416 ## [0.25.1](https://github.com/sunng87/handlebars-rust/compare/0.25.0...0.25.1) - 2017-02-21
417
418 * [Added] Added support for braces escaping`\{{var}}`.
419
420 ## [0.25.0](https://github.com/sunng87/handlebars-rust/compare/0.24.2...0.25.0) - 2017-01-28
421
422 * [Changed] Updated serde family to 0.9.x
423 * [Added] Added `to_json` function to convert data to `Json` or `Value`
424
425 ## [0.24.2](https://github.com/sunng87/handlebars-rust/compare/0.24.1...0.24.2) - 2017-01-28
426
427 * [Added] Added support for `{{> @partial-block}}`
428
429 ## [0.24.1](https://github.com/sunng87/handlebars-rust/compare/0.24.0...0.24.1) - 2016-12-30
430
431 * [Changed] Updated `regex` crate to 0.2, fixed WebAssembly support
432 * [Changed] Fixed error reporting in partial.
433
434 ## [0.24.0](https://github.com/sunng87/handlebars-rust/compare/0.23.0...0.24.0) - 2016-12-30
435
436 * [Added] Decorator support: change context data and helpers during rendering
437 * [Changed] (**Breaking**) Helper trait changed, `Context` parameter no longer
438 available, use `render_context.context()` instead.
439 * [Changed] (**Breaking**) Refactored Handlebars APIs, `Template` and
440 `Context` are no longer exposed in public API.
441 * [Changed] Docs updated.
442
443 ## [0.23.0](https://github.com/sunng87/handlebars-rust/compare/0.22.0...0.23.0) - 2016-12-12
444
445 * [Changed] `partial4` is now default. Use `partial_legacy` for previous version of template inheritance.
446 * [Changed] Corrected subexpression behavior. Subexpression result is treated as string.
447 * [Changed] Improved performance for render: better escape function and string writer buffer.
448
449 ## [0.22.0](https://github.com/sunng87/handlebars-rust/compare/0.21.1...0.22.0) - 2016-10-29
450
451 * [Changed] Improved error reporting. Fixed display for several error
452 types.
453 * [Changed] Dropped regex and lazystatic as dependency.
454 * [Changed] Examples refined.
455
456 ## [0.21.1](https://github.com/sunng87/handlebars-rust/compare/0.21.0...0.21.1) - 2016-10-09
457
458 * [Changed] Fixed
459 [#106](https://github.com/sunng87/handlebars-rust/issue/106), when
460 property name contains `this`, it doesn't work
461
462 ## [0.21.0](https://github.com/sunng87/handlebars-rust/compare/0.20.5...0.21.0) - 2016-09-27
463
464 * [Added] Block params support
465 [#101](https://github.com/sunng87/handlebars-rust/pull/101)
466 * [Added] New partial syntax [#103](https://github.com/sunng87/handlebars-rust/pull/103)
467 * [Changed] Rewrite path parser, better support for `../`
468 [#105](https://github.com/sunng87/handlebars-rust/pull/105)
469
470 ## [0.20.5](https://github.com/sunng87/handlebars-rust/compare/0.20.5...0.20.4) - 2016-08-27
471
472 * [Changed] Fixed issue for using [] in expression
473 [#100](https://github.com/sunng87/handlebars-rust/issue/100)
474
475 ## [0.20.4](https://github.com/sunng87/handlebars-rust/compare/0.20.4...0.20.3) - 2016-08-27
476
477 * [Changed] Fixed error message for partials
478 [#98](https://github.com/sunng87/handlebars-rust/issue/98)
479 * [Added] Added support for `else` in `each` block
480 [#99](https://github.com/sunng87/handlebars-rust/issue/99)
481
482 ## [0.20.3](https://github.com/sunng87/handlebars-rust/compare/0.20.3...0.20.2) - 2016-08-14
483
484 * [Changed] Fixed `with` used inside `each` block [#97](https://github.com/sunng87/handlebars-rust/pull/97)
485
486 ## [0.20.2](https://github.com/sunng87/handlebars-rust/compare/0.20.2...0.20.0) - 2016-08-07
487
488 * [Changed] Allowed dash character in reference
489 [#94](https://github.com/sunng87/handlebars-rust/pull/94)
490 * [Changed] Fixed path error in nested each helpers [#95](https://github.com/sunng87/handlebars-rust/pull/95)
491
492 ## [0.20.0](https://github.com/sunng87/handlebars-rust/compare/0.20.0...0.19.1) - 2016-07-31
493
494 * [Changed] Updated serde to 0.8
495
496 ## [0.19.1](https://github.com/sunng87/handlebars-rust/compare/0.19.1...0.19.0) - 2016-07-26
497
498 * [Changed] Fixed `../` path visitor bug in nested `#each`
499 [#93](https://github.com/sunng87/handlebars-rust/issues/93)
500 * [Changed] Rollback 0.19.0 change for `#if`
501
502 ## [0.19.0] - 2016-07-24
503
504 * [Changed] changed `&Path` to `AsRef<Path>`
505 * [Changed] Fixed "../" path visitor in `#each` and `#if`.
506 * [Added] `set_local_path_root` and `get_local_path_root` for
507 `RenderContext`.
508
509 ## [0.18.2] - 2016-07-11
510
511 * [Changed] Disable `rustc_type` when `serde_type` enabled.
512
513 ## [0.18.1] - 2016-07-04
514
515 * [Changed] Allow `-` char in reference.
516
517 ## [0.18.0] - 2016-06-25
518
519 * [Changed] Rewrite template parser with pest.
520
521 ## [0.17.0] - 2016-06-05
522
523 * [Added] JSON literals as helper param or hash, and subexpression
524 return value.
525 * [Added] RenderError now reports template name, line and column
526 number. Enabled by default. This behavior can be disabled via
527 `registry.source_map_enable(false)` on production.
528 * [Changed] Helper API **break change**: `param(..)` and `hash(...)`
529 now returns a `ContextJson` as value which contains path as well as
530 parsed Json value. No need to call `ctx.navigate(...)` any more.
531 * [Removed] `to_string` of `Template` and `TemplateElement` which is
532 unnecessary and contains issue
533
534 ## [0.16.1] - 2016-05-15
535
536 * [Removed] `num` crate dependency which is unnecessary
537
538 ## [0.16.0] - 2016-03-18
539
540 * [Added] new APIs to render template string/files without
541 registering to Registry
542 * [Added] new handlebars raw helper syntax
543
544 ## [0.15.0] - 2016-03-01
545
546 * [Changed] update serde libraries to 0.7.x
547
548 ## [0.14.0] - 2016-02-08
549
550 * [Added] new API: `register_template_file`