diff --git a/CHANGELOG.md b/CHANGELOG.md index eeb8bd14..5c63be86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,8 +8,8 @@ ### New Features -* Aded `MapNode` to apply a `map` operator to an array. - You can now use `{% map someArray with item set result %}` +* Added `MapNode` to apply a `map` operator to an array. + You can now use `{% map someArray into result using item %}` to do the equivalent of the `result = someArray.map { item in … }` Swift code. [#11](https://github.com/SwiftGen/StencilSwiftKit/pull/11) diff --git a/README.md b/README.md index 304e89d7..9f9953e8 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,9 @@ _TODO: [Write more extension Documentation](https://github.com/SwiftGen/StencilS * `SetNode` * `{% set %}…{% endset %}` * Renders the nodes inside this block immediately, and stores the result in the ` variable of the current context. +* `MapNode` + * `{% map into using %}…{% endmap %}` + * Apply a `map` operator to an array, and store the result into a new array variable `` in the current context. ## Filters