Swiftpack.co - Package - vapor/template-kit

Github

link
Stars: 29
Help us keep the lights on

Dependencies

Releases

1.2.0 - Apr 25, 2019

New:

  • TemplateDataEncoder has been refactored for improved performance. (#50)
  • DateFormatters are now cached during rendering for improved performance. (#51)

Fixed:

  • DateFormat now returns null when arguments are null. (#44)
  • Context userInfo does now get passed to nested scopes. (#53, #54)
  • Using #for on null array now returns null. (#55)

1.1.2 - Mar 26, 2019

Fixed:

  • Fixed an issue with UnsafeBufferPointer in Swift 5. (#46)

1.1.1 - Nov 6, 2018

Fixed:

  • userInfo is now correctly passed when using #embed. (#41, #42)

1.1.0 - Aug 8, 2018

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)

1.0.1 - Apr 26, 2018

Fixed:

  • Re-added ViewRenderer.

Milestone: 1.0.1