Skip to content

Commit

Permalink
Update readme and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
djbe committed Jan 28, 2017
1 parent f4e4901 commit afb1eca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@

### 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.
[David Jennes](https://github.com/djbe)
[#11](https://github.com/SwiftGen/StencilSwiftKit/pull/11)

### Internal Changes
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ _TODO: [Write more extension Documentation](https://github.com/SwiftGen/StencilS
* `SetNode`
* `{% set <Name> %}…{% endset %}`
* Renders the nodes inside this block immediately, and stores the result in the `<Name`> variable of the current context.
* `MapNode`
* `{% map <Variable> into <Name> using <ItemName> %}…{% endmap %}`
* Apply a `map` operator to an array, and store the result into a new array variable `<Name>` in the current context.

## Filters

Expand Down

0 comments on commit afb1eca

Please sign in to comment.