Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

TemplateKit 1.1.0

Compare
Choose a tag to compare
@tanner0101 tanner0101 released this 08 Aug 18:42
· 50 commits to master since this release
db35b1c

New:

  • Performance improvements for files loaded from disk. (#24)
  • ViewRenderer now supports passing a userInfo dictionary that will be accessible by TagRenderers. (#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:

  • Fixed issue which could cause incorrect views to be returned from cache. (#26, #25, #31).
  • Fixed LeafDataEncoder to properly recognize custom encoding methods. (#29, #20, #30).
  • Fixed #date tag crasher. (#23)