- The context enrich function won't overwrite existing values in the
env
andparam
variables.
David Jennes #29
- Added camelToSnakeCase filter.
Gyuri Grell #24
- Further refactor the Rakefile into rakelibs, and add a Gemfile for gem dependencies.
David Jennes #28 #31 - Update Stencil to 0.9.0 and update project to Xcode 8.3.
Diogo Tridapalli #32 - Added documentation for tags and filters.
David Jennes #12
- The
ParametersError
enum has been replaced by theParameters.Error
nested type.ParametersError
still works (it is nowtypealias
) but will be removed in the next major release.
Olivier Halligon - The
FilterError
enum has been replaced by theFilters.Error
nested type.FilterError
still works (it is nowtypealias
) but will be removed in the next major release.
Olivier Halligon
- Switch from Travis CI to Circle CI, clean up the Rakefile in the process.
David Jennes #20 #25 - Fixed SPM dependency in
Package.swift
.
Krzysztof Zabłocki #26
None
- Added support for Swift Package Manager.
Krzysztof Zabłocki #15 - Added
MapNode
to apply amap
operator to an array. You can now use{% map someArray into result using item %}
to do the equivalent of theresult = someArray.map { item in … }
Swift code.
David Jennes #11 - 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.
David Jennes #8 - Add a
StencilContext.enrich
function to enrich Stencil contexts withparam
andenv
dictionaries.
Theparam
dictionary typically contains parameters parsed via the parameters parser above.
Theenv
dictionary contains all the environment variables. You can thus access them in your templates usingenv.USER
,env.LANG
,env.PRODUCT_MODULE_NAME
, etc.
#19
- Renamed
SwiftTemplate
toStencilSwiftTemplate
.
David Jennes #14 - Refactor stencil swift extensions registration for easier use with an existing
Extension
.
David Jennes #16 - Refactor stencil node tests to not use templates and output files.
David Jennes #17
See SwitftGen's own CHANGELOG pre SwiftGen 4.2 version, before the refactoring that led us to split the code in frameworks