This repository has been archived by the owner on Nov 16, 2020. It is now read-only.
Releases: vapor/template-kit
Releases · vapor/template-kit
Support rendering URLs
This patch was authored and released by @tanner0101.
Adds support for serializing URLs in templates (#38, fixes #64).
TemplateKit 1.4.0
TemplateKit 1.3.0
TemplateKit 1.2.0
TemplateKit 1.1.2
Fixed:
- Fixed an issue with
UnsafeBufferPointer
in Swift 5. (#46)
TemplateKit 1.1.1
TemplateKit 1.1.0
New:
- Performance improvements for files loaded from disk. (#24)
ViewRenderer
now supports passing auserInfo
dictionary that will be accessible byTagRenderer
s. (#17, #28)
return req.view().render("welcome", ["name": "Vapor"], userInfo: ["foo": "bar"])
final class FooTag: TagRenderer {
func render(_ tag: TagContext) -> ... {
print(tag.context.userInfo["foo"])
}
}
Fixed:
TemplateKit 1.0.1
TemplateKit 1.0.0
Introducing Template Kit 1.0 🎉
Template Kit is an easy-to-use foundation for building powerful templating languages in Swift.
Docs:
https://docs.vapor.codes/3.0/template-kit/getting-started/
API Docs:
https://api.vapor.codes/template-kit/latest/TemplateKit
Milestone:
1.0.0
Changes since final release candidate:
Fixed:
- Audited and internalized several APIs to minimize API surface.
- Removed
TemplateData.future
case in favor ofTagRenderer
s returningFuture<TemplateData>
(was redundant previously). - Added lots of missing doc blocks, now at 100% docs coverage.
Template Kit 1.0.0 RC 2.0.1
New:
- Adds
isFirst
andisLast
variables alongsideindex
while using iterators.