1.4 KiB
Stencil Changelog
Master
Breaking
-
TemplateLoaderis now a protocol with the file system based loader now calledFileSystemLoader. You will need to useFileSystemLoaderinstead. -
TemplateLoaderloadTemplatemethods are now throwing and now take labels for thenameandnamesarguments. -
Many internal classes are no longer private. Some APIs were previously accessible due to earlier versions of Swift requiring the types to be public to be able to test. Now we have access to
@testablethese can correctly be private.
Enhancements
-
If tags can now use prefix and infix operators such as
not,andandor.{% if one or two and not three %} -
You may now register custom template filters which make use of arguments.
-
There is now a
defaultfilter.Hello {{ name|default:"World" }} -
There is now a
joinfilter.{{ value|join:", " }}
Bug Fixes
-
Variables (
{{ variable.5 }}) that reference an array index at an unknown index will now resolve tonilinstead of causing a crash. #72 -
Templates can now extend templates that extend other templates. #60
-
If comparisons will now treat 0 and below numbers as negative.
0.6.0
Enhancements
- Adds support for Swift 3.0.