Skip to content

Commit 93b2f6e

Browse files
committed
Add CHANGELOG entry for #19
1 parent a663a47 commit 93b2f6e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ _None_
1818
to do the equivalent of the `result = someArray.map { item in … }` Swift code.
1919
[David Jennes](https://github.com/djbe)
2020
[#11](https://github.com/SwiftGen/StencilSwiftKit/pull/11)
21+
* Add a "parameters parser" able to transform parameters passed as a set of strings
22+
(`a=1 b.x=2 b.y=3 c=4 c=5`) — typically provided as the command line arguments of a CLI
23+
— into a Dictionary suitable for Stencil contexts.
24+
[David Jennes](https://github.com/djbe)
25+
[#8](https://github.com/SwiftGen/StencilSwiftKit/pull/8)
26+
* Add a `StencilContext.enrich` function to enrich Stencil contexts with `param` and `env` dictionaries.
27+
The `param` dictionary typically contains parameters parsed via the parameters parser above.
28+
The `env` dictionary contains all the environment variables. You can thus access them in
29+
your templates using `env.USER`, `env.LANG`, `env.PRODUCT_MODULE_NAME`, etc.
30+
[#19](https://github.com/SwiftGen/StencilSwiftKit/pull/19)
2131

2232
### Internal Changes
2333

@@ -30,9 +40,6 @@ _None_
3040
* Refactor stencil node tests to not use templates and output files.
3141
[David Jennes](https://github.com/djbe)
3242
[#17](https://github.com/SwiftGen/StencilSwiftKit/issues/17)
33-
* Add a "parameters parser" able to transform parameters passed as a set of strings (`a=1 b.x=2 b.y=3 c=4 c=5`) — typically provided as the command line arguments of a CLI — into a Dictionary suitable for Stencil contexts.
34-
[David Jennes](https://github.com/djbe)
35-
[#8](https://github.com/SwiftGen/StencilSwiftKit/pull/8)
3643

3744
## Pre-1.0.0
3845

0 commit comments

Comments
 (0)