|
11 | 11 | object `item = ["name": "John"]`, then `{{ item[key] }}` will evaluate to "John". |
12 | 12 | [David Jennes](https://github.com/djbe) |
13 | 13 | [#215](https://github.com/stencilproject/Stencil/pull/215) |
14 | | - |
15 | | -- Adds support for using spaces in filter expression |
| 14 | +- Adds support for using spaces in filter expression. |
16 | 15 | [Ilya Puchka](https://github.com/yonaskolb) |
17 | 16 | [#178](https://github.com/stencilproject/Stencil/pull/178) |
18 | 17 |
|
|
27 | 26 |
|
28 | 27 | ### Enhancements |
29 | 28 |
|
30 | | -- Added support for resolving superclass properties for not-NSObject subclasses |
| 29 | +- Added support for resolving superclass properties for not-NSObject subclasses. |
| 30 | + [Ilya Puchka](https://github.com/ilyapuchka) |
| 31 | + [#152](https://github.com/stencilproject/Stencil/pull/152) |
31 | 32 | - The `{% for %}` tag can now iterate over tuples, structures and classes via |
32 | | - their stored properties. |
33 | | -- Added `split` filter |
34 | | -- Allow default string filters to be applied to arrays |
35 | | -- Similar filters are suggested when unknown filter is used |
36 | | -- Added `indent` filter |
37 | | -- Allow using new lines inside tags |
38 | | -- Added support for iterating arrays of tuples |
39 | | -- Added support for ranges in if-in expression |
40 | | -- Added property `forloop.length` to get number of items in the loop |
41 | | -- Now you can construct ranges for loops using `a...b` syntax, i.e. `for i in 1...array.count` |
| 33 | + their stored properties. |
| 34 | + [Ilya Puchka](https://github.com/ilyapuchka) |
| 35 | + [#172](https://github.com/stencilproject/Stencil/pull/173) |
| 36 | +- Added `split` filter. |
| 37 | + [Ilya Puchka](https://github.com/ilyapuchka) |
| 38 | + [#187](https://github.com/stencilproject/Stencil/pull/187) |
| 39 | +- Allow default string filters to be applied to arrays. |
| 40 | + [Ilya Puchka](https://github.com/ilyapuchka) |
| 41 | + [#190](https://github.com/stencilproject/Stencil/pull/190) |
| 42 | +- Similar filters are suggested when unknown filter is used. |
| 43 | + [Ilya Puchka](https://github.com/ilyapuchka) |
| 44 | + [#186](https://github.com/stencilproject/Stencil/pull/186) |
| 45 | +- Added `indent` filter. |
| 46 | + [Ilya Puchka](https://github.com/ilyapuchka) |
| 47 | + [#188](https://github.com/stencilproject/Stencil/pull/188) |
| 48 | +- Allow using new lines inside tags. |
| 49 | + [Ilya Puchka](https://github.com/ilyapuchka) |
| 50 | + [#202](https://github.com/stencilproject/Stencil/pull/202) |
| 51 | +- Added support for iterating arrays of tuples. |
| 52 | + [Ilya Puchka](https://github.com/ilyapuchka) |
| 53 | + [#177](https://github.com/stencilproject/Stencil/pull/177) |
| 54 | +- Added support for ranges in if-in expression. |
| 55 | + [Ilya Puchka](https://github.com/ilyapuchka) |
| 56 | + [#193](https://github.com/stencilproject/Stencil/pull/193) |
| 57 | +- Added property `forloop.length` to get number of items in the loop. |
| 58 | + [Ilya Puchka](https://github.com/ilyapuchka) |
| 59 | + [#171](https://github.com/stencilproject/Stencil/pull/171) |
| 60 | +- Now you can construct ranges for loops using `a...b` syntax, i.e. `for i in 1...array.count`. |
| 61 | + [Ilya Puchka](https://github.com/ilyapuchka) |
| 62 | + [#192](https://github.com/stencilproject/Stencil/pull/192) |
42 | 63 |
|
43 | 64 | ### Bug Fixes |
44 | 65 |
|
45 | | -- Fixed rendering `{{ block.super }}` with several levels of inheritance |
46 | | -- Fixed checking dictionary values for nil in `default` filter |
47 | | -- Fixed comparing string variables with string literals, in Swift 4 string literals became `Substring` and thus couldn't be directly compared to strings. |
48 | | -- Integer literals now resolve into Int values, not Float |
49 | | -- Fixed accessing properties of optional properties via reflection |
50 | | -- No longer render optional values in arrays as `Optional(..)` |
51 | | -- Fixed subscription tuples by value index, i.e. `{{ tuple.0 }}` |
| 66 | +- Fixed rendering `{{ block.super }}` with several levels of inheritance. |
| 67 | + [Ilya Puchka](https://github.com/ilyapuchka) |
| 68 | + [#154](https://github.com/stencilproject/Stencil/pull/154) |
| 69 | +- Fixed checking dictionary values for nil in `default` filter. |
| 70 | + [Ilya Puchka](https://github.com/ilyapuchka) |
| 71 | + [#162](https://github.com/stencilproject/Stencil/pull/162) |
| 72 | +- Fixed comparing string variables with string literals, in Swift 4 string literals became `Substring` and thus couldn't be directly compared to strings. |
| 73 | + [Ilya Puchka](https://github.com/ilyapuchka) |
| 74 | + [#168](https://github.com/stencilproject/Stencil/pull/168) |
| 75 | +- Integer literals now resolve into Int values, not Float. |
| 76 | + [Ilya Puchka](https://github.com/ilyapuchka) |
| 77 | + [#181](https://github.com/stencilproject/Stencil/pull/181) |
| 78 | +- Fixed accessing properties of optional properties via reflection. |
| 79 | + [Ilya Puchka](https://github.com/ilyapuchka) |
| 80 | + [#204](https://github.com/stencilproject/Stencil/pull/204) |
| 81 | +- No longer render optional values in arrays as `Optional(..)`. |
| 82 | + [Ilya Puchka](https://github.com/ilyapuchka) |
| 83 | + [#205](https://github.com/stencilproject/Stencil/pull/205) |
| 84 | +- Fixed subscription tuples by value index, i.e. `{{ tuple.0 }}`. |
| 85 | + [Ilya Puchka](https://github.com/ilyapuchka) |
| 86 | + [#172](https://github.com/stencilproject/Stencil/pull/172) |
52 | 87 |
|
53 | 88 |
|
54 | 89 | ## 0.10.1 |
|
249 | 284 | ### Bug Fixes |
250 | 285 |
|
251 | 286 | - Variables (`{{ variable.5 }}`) that reference an array index at an unknown |
252 | | - index will now resolve to `nil` instead of causing a crash. |
| 287 | + index will now resolve to `nil` instead of causing a crash. |
253 | 288 | [#72](https://github.com/kylef/Stencil/issues/72) |
254 | 289 |
|
255 | | -- Templates can now extend templates that extend other templates. |
| 290 | +- Templates can now extend templates that extend other templates. |
256 | 291 | [#60](https://github.com/kylef/Stencil/issues/60) |
257 | 292 |
|
258 | 293 | - If comparisons will now treat 0 and below numbers as negative. |
|
0 commit comments