Skip to content

1.0.0

Compare
Choose a tag to compare
@AliSoftware AliSoftware released this 20 Feb 11:59
· 504 commits to stable since this release

New Features

  • Added support for Swift Package Manager.
    Krzysztof Zabłocki
    #15
  • 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
    #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 with param and env dictionaries.
    The param dictionary typically contains parameters parsed via the parameters parser above.
    The env dictionary contains all the environment variables. You can thus access them in
    your templates using env.USER, env.LANG, env.PRODUCT_MODULE_NAME, etc.
    #19

Internal Changes

  • Renamed SwiftTemplate to StencilSwiftTemplate.
    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