Merge pull request #251 from stencilproject/release/0.13.0
Release 0.13.0
This commit is contained in:
27
CHANGELOG.md
27
CHANGELOG.md
@@ -1,17 +1,8 @@
|
|||||||
# Stencil Changelog
|
# Stencil Changelog
|
||||||
|
|
||||||
## Master
|
## 0.13.0
|
||||||
|
|
||||||
### Bug Fixes
|
### Breaking
|
||||||
|
|
||||||
- Now accessing undefined keys in NSObject does not cause runtime crash and instead renders empty string.
|
|
||||||
[Ilya Puchka](https://github.com/ilyapuchka)
|
|
||||||
[#234](https://github.com/stencilproject/Stencil/pull/234)
|
|
||||||
- `for` tag: When iterating over a dictionary the keys will now always be sorted (in an ascending order) to ensure consistent output generation.
|
|
||||||
[David Jennes](https://github.com/djbe)
|
|
||||||
[#240](https://github.com/stencilproject/Stencil/pull/240)
|
|
||||||
|
|
||||||
### Breaking Changes
|
|
||||||
|
|
||||||
- Now requires Swift 4.1 or newer.
|
- Now requires Swift 4.1 or newer.
|
||||||
[Yonas Kolb](https://github.com/yonaskolb)
|
[Yonas Kolb](https://github.com/yonaskolb)
|
||||||
@@ -23,7 +14,7 @@
|
|||||||
[Ilya Puchka](https://github.com/ilyapuchka)
|
[Ilya Puchka](https://github.com/ilyapuchka)
|
||||||
[#160](https://github.com/stencilproject/Stencil/pull/160)
|
[#160](https://github.com/stencilproject/Stencil/pull/160)
|
||||||
|
|
||||||
### New Features
|
### Enhancements
|
||||||
|
|
||||||
- Now you can conditionally render variables with `{{ variable if condition }}`, which is a shorthand for `{% if condition %}{{ variable }}{% endif %}`. You can also use `else` like `{{ variable1 if condition else variable2 }}`, which is a shorthand for `{% if condition %}{{ variable1 }}{% else %}{{ variable2 }}{% endif %}`
|
- Now you can conditionally render variables with `{{ variable if condition }}`, which is a shorthand for `{% if condition %}{{ variable }}{% endif %}`. You can also use `else` like `{{ variable1 if condition else variable2 }}`, which is a shorthand for `{% if condition %}{{ variable1 }}{% else %}{{ variable2 }}{% endif %}`
|
||||||
[Ilya Puchka](https://github.com/ilyapuchka)
|
[Ilya Puchka](https://github.com/ilyapuchka)
|
||||||
@@ -32,6 +23,18 @@
|
|||||||
[Ilya Puchka](https://github.com/ilyapuchka)
|
[Ilya Puchka](https://github.com/ilyapuchka)
|
||||||
[#245](https://github.com/stencilproject/Stencil/pull/245)
|
[#245](https://github.com/stencilproject/Stencil/pull/245)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- Fixed the performance issues introduced in Stencil 0.12 with the error log improvements.
|
||||||
|
[Ilya Puchka](https://github.com/ilyapuchka)
|
||||||
|
[#230](https://github.com/stencilproject/Stencil/pull/230)
|
||||||
|
- Now accessing undefined keys in NSObject does not cause runtime crash and instead renders empty string.
|
||||||
|
[Ilya Puchka](https://github.com/ilyapuchka)
|
||||||
|
[#234](https://github.com/stencilproject/Stencil/pull/234)
|
||||||
|
- `for` tag: When iterating over a dictionary the keys will now always be sorted (in an ascending order) to ensure consistent output generation.
|
||||||
|
[David Jennes](https://github.com/djbe)
|
||||||
|
[#240](https://github.com/stencilproject/Stencil/pull/240)
|
||||||
|
|
||||||
### Internal Changes
|
### Internal Changes
|
||||||
|
|
||||||
- Updated the codebase to use Swift 4 features.
|
- Updated the codebase to use Swift 4 features.
|
||||||
|
|||||||
3
LICENSE
3
LICENSE
@@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2014, Kyle Fuller
|
Copyright (c) 2018, Kyle Fuller
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
@@ -21,4 +21,3 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|||||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
// swift-tools-version:4.0
|
// swift-tools-version:4.1
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
||||||
let package = Package(
|
let package = Package(
|
||||||
name: "Stencil",
|
name: "Stencil",
|
||||||
products: [
|
products: [
|
||||||
.library(name: "Stencil", targets: ["Stencil"]),
|
.library(name: "Stencil", targets: ["Stencil"])
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.package(url: "https://github.com/kylef/PathKit.git", from: "0.9.0"),
|
.package(url: "https://github.com/kylef/PathKit.git", from: "0.9.0"),
|
||||||
.package(url: "https://github.com/kylef/Spectre.git", from: "0.9.0"),
|
.package(url: "https://github.com/kylef/Spectre.git", from: "0.9.0")
|
||||||
],
|
],
|
||||||
targets: [
|
targets: [
|
||||||
.target(name: "Stencil", dependencies: [
|
.target(name: "Stencil", dependencies: [
|
||||||
"PathKit",
|
"PathKit"
|
||||||
], path: "Sources"),
|
], path: "Sources"),
|
||||||
.testTarget(name: "StencilTests", dependencies: [
|
.testTarget(name: "StencilTests", dependencies: [
|
||||||
"Stencil",
|
"Stencil",
|
||||||
"Spectre",
|
"Spectre"
|
||||||
])
|
])
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|||||||
23
Package@swift-4.2.swift
Normal file
23
Package@swift-4.2.swift
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
// swift-tools-version:4.2
|
||||||
|
import PackageDescription
|
||||||
|
|
||||||
|
let package = Package(
|
||||||
|
name: "Stencil",
|
||||||
|
products: [
|
||||||
|
.library(name: "Stencil", targets: ["Stencil"])
|
||||||
|
],
|
||||||
|
dependencies: [
|
||||||
|
.package(url: "https://github.com/kylef/PathKit.git", from: "0.9.0"),
|
||||||
|
.package(url: "https://github.com/kylef/Spectre.git", from: "0.9.0")
|
||||||
|
],
|
||||||
|
targets: [
|
||||||
|
.target(name: "Stencil", dependencies: [
|
||||||
|
"PathKit"
|
||||||
|
], path: "Sources"),
|
||||||
|
.testTarget(name: "StencilTests", dependencies: [
|
||||||
|
"Stencil",
|
||||||
|
"Spectre"
|
||||||
|
])
|
||||||
|
],
|
||||||
|
swiftLanguageVersions: [.v4, .v4_2]
|
||||||
|
)
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Stencil",
|
"name": "Stencil",
|
||||||
"version": "0.12.1",
|
"version": "0.13.0",
|
||||||
"summary": "Stencil is a simple and powerful template language for Swift.",
|
"summary": "Stencil is a simple and powerful template language for Swift.",
|
||||||
"homepage": "https://stencil.fuller.li",
|
"homepage": "https://stencil.fuller.li",
|
||||||
"license": {
|
"license": {
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
"social_media_url": "https://twitter.com/kylefuller",
|
"social_media_url": "https://twitter.com/kylefuller",
|
||||||
"source": {
|
"source": {
|
||||||
"git": "https://github.com/stencilproject/Stencil.git",
|
"git": "https://github.com/stencilproject/Stencil.git",
|
||||||
"tag": "0.12.1"
|
"tag": "0.13.0"
|
||||||
},
|
},
|
||||||
"source_files": [
|
"source_files": [
|
||||||
"Sources/*.swift"
|
"Sources/*.swift"
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
"tvos": "9.0"
|
"tvos": "9.0"
|
||||||
},
|
},
|
||||||
"cocoapods_version": "1.4.0",
|
"cocoapods_version": "1.4.0",
|
||||||
"swift_version": "4.1",
|
"swift_version": "4.2",
|
||||||
"requires_arc": true,
|
"requires_arc": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"PathKit": [
|
"PathKit": [
|
||||||
|
|||||||
2
docs/_templates/sidebar_intro.html
vendored
2
docs/_templates/sidebar_intro.html
vendored
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
<iframe
|
<iframe
|
||||||
src="https://ghbtns.com/github-btn.html?user=kylef&repo=Stencil&type=watch&count=true&size=large"
|
src="https://ghbtns.com/github-btn.html?user=stencilproject&repo=Stencil&type=watch&count=true&size=large"
|
||||||
allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="35px">
|
allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="35px">
|
||||||
</iframe>
|
</iframe>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -58,9 +58,9 @@ author = 'Kyle Fuller'
|
|||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = '0.12.1'
|
version = '0.13.0'
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = '0.12.1'
|
release = '0.13.0'
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ dependencies inside ``Package.swift``.
|
|||||||
let package = Package(
|
let package = Package(
|
||||||
name: "MyApplication",
|
name: "MyApplication",
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.Package(url: "https://github.com/kylef/Stencil.git", majorVersion: 0, minor: 8),
|
.Package(url: "https://github.com/stencilproject/Stencil.git", majorVersion: 0, minor: 13),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ If you're using CocoaPods, you can add Stencil to your ``Podfile`` and then run
|
|||||||
|
|
||||||
.. code-block:: ruby
|
.. code-block:: ruby
|
||||||
|
|
||||||
pod 'Stencil', '~> 0.8.0'
|
pod 'Stencil', '~> 0.13.0'
|
||||||
|
|
||||||
Carthage
|
Carthage
|
||||||
--------
|
--------
|
||||||
@@ -37,7 +37,7 @@ Carthage
|
|||||||
|
|
||||||
.. code-block:: text
|
.. code-block:: text
|
||||||
|
|
||||||
github "kylef/Stencil" ~> 0.8.0
|
github "stencilproject/Stencil" ~> 0.13.0
|
||||||
|
|
||||||
2) Checkout your dependencies, generate the Stencil Xcode project, and then use Carthage to build Stencil:
|
2) Checkout your dependencies, generate the Stencil Xcode project, and then use Carthage to build Stencil:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user