This repository has been archived by the owner on Nov 16, 2020. It is now read-only.
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: