Swiftpack.co - Package - vapor/template-kit

Github

link
Stars: 25
Help us keep the lights on

Dependencies

Releases

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

1.0.0 - Apr 10, 2018

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 of TagRenderers returning Future<TemplateData> (was redundant previously).
  • Added lots of missing doc blocks, now at 100% docs coverage.

1.0.0-rc.2.0.1 - Mar 22, 2018

New:

  • Adds isFirst and isLast variables alongside index while using iterators.

1.0.0-rc.2 - Mar 21, 2018

New:

  • Vapor is now running on Swift NIO!

Milestone