Swiftpack.co - Package - vapor-community/leaf-provider

Github

link
Stars: 7

Dependencies

Used By

Total: 0

Releases

Leaf Provider 1.1.0 - 2017-07-11 22:27:21

New:

  • Added a .make() call that accepts a LeafContext.

Milestone

Leaf Provider 1.0 - 2017-05-18 13:38:07

🎉

Leaf Provider is a new package designed to integrate leaf templating with your Vapor project.

Leaf Provider 1.0 Beta 4 - 2017-05-03 14:41:14

Leaf Provider 1.0 Beta 3 - 2017-04-20 17:29:55

Fixed:

  • Updated to new Vapor config.

Leaf Provider 1.0 Beta 2 - 2017-04-12 15:52:50

Leaf Provider 1.0 Beta 1 - 2017-03-27 16:38:59

Beta Candidate

Leaf Provider 0.3 - 2017-03-22 09:38:49

Fixed:

  • Updating Provider Conformance

#2

Fix Naming - 2017-03-20 21:36:27

New:

  • Fix naming conventions

Leaf is now decoupled from Vapor by default, add this to your project to use Leaf templating 🙌

In your Package.swift

dependencies: [
    .Package(url: "https://github.com/vapor/leaf-provider.git", majorVersion: 0, minor: 2),
]

And in your code:

drop.addProvider(VaporLeaf.Provider())

For customization, you can use drop.stem()

let stem = try drop.stem()
stem.addTag(
stem.cache = nil
// etc.

Leaf Provider 0.1 - 2017-03-20 20:06:28

Leaf is now decoupled from Vapor by default, add this to your project to use Leaf templating 🙌

In your Package.swift

dependencies: [
    .Package(url: "https://github.com/vapor/leaf-provider.git", majorVersion: 0, minor: 1),
]

And in your code:

drop.addProvider(LeafProvider())

For customization, you can use drop.stem()

let stem = try drop.stem()
stem.addTag(
stem.cache = nil
// etc.