Swiftpack.co - Package - vapor/leaf

Github

link
Stars: 234

Releases

Leaf 4.0.0 Beta 2 - 2019-12-09 20:38:42

  • Updated to latest LeafKit and Vapor beta 2 releases (#149)

Configuration changes:

import Leaf
import Vapor

// beta.1
app.use(LeafProvider())

// beta.2
app.views.use(.leaf)

Rendering changes:

// beta.2
app.get("test-file") { req in
    req.view.render(#file, ["foo": "bar"])
}

Leaf 4.0.0 Beta 1 - 2019-11-15 20:06:08

Leaf 4.0.0 Alpha 1.2 - 2019-10-10 17:04:45

  • Fixed an issue with NIOThreadPool service being unavailable (#141)

Leaf 4.0.0 Alpha 1.1 - 2019-08-22 20:11:42

Fixed:

  • Use tagged LeafKit version.

Leaf 4.0.0 Alpha 1 - 2019-08-22 20:08:38

https://medium.com/@codevapor/vapor-4-alpha-1-releases-begin-94a4bc79dd9a

Leaf 3.0.2 - 2018-10-30 13:54:53

Fixed:

  • #// tag no longer removes newline after trailing comments. (#130, #127)

Leaf 3.0.1 - 2018-08-10 19:41:58

Fixed:

  • Outdated dependencies that can cause build issues in some cases (#123, #124).

Leaf 3.0.0 RC 2.1 - 2018-08-08 23:12:34

Leaf 3.0.0 RC 2.1.1 - 2018-08-08 23:12:26

Leaf 3.0.0 RC 2.1.2 - 2018-08-08 23:12:18

Leaf 3.0.0 RC 2.2 - 2018-08-08 23:12:10

Leaf 3.0.0 - 2018-08-08 23:07:31

Leaf 3.0 is here 🎉 🍃 An expressive, performant, and extensible templating language built for Swift.

Docs: https://docs.vapor.codes/3.0/leaf/getting-started/

API Docs: https://api.vapor.codes/leaf/latest/Leaf

Leaf 3.0.0 RC 2 - 2018-03-22 00:10:13

New:

  • Vapor is now running on Swift NIO!
  • Added isFirst and isLast alongside index when using #for.

Milestone

Leaf 3.0.0 RC 1 - 2018-02-26 18:51:16

Leaf 3.0.0 Beta 1.1 - 2018-02-15 02:45:31

Leaf 3.0.0 Beta 1 - 2018-02-12 17:27:37

Leaf 2.0.2 - 2017-08-23 19:42:18

Fixed:

  • Empty array resolves as false in if statements.

Milestone

Leaf 2.0.1 - 2017-05-26 14:44:05

Fixed:

  • issue related to nested loops and not properly popping self based context.

Milestone

Leaf 2.0 - 2017-05-18 13:20:52

🎉

Some new features, decoupled from Vapor by default, other enhancements. Check out the full diff here

Leaf 2.0 Beta 8 - 2017-05-16 11:31:06

New:

  • index and offset access from loop tags
  • more flexible whitespace options

#65 #64

Leaf 2.0 Beta 7 - 2017-05-02 15:21:38

New:

  • cache w/ size constraints
  • better tag inference in non-tag scenarios
  • add additional escape capabilities w/ \#
  • better argument extraction arguments[0]?.string

#62

Leaf 2.0 Beta 6 - 2017-04-26 21:39:59

Fixed:

  • Bug associated w/ , inside of constants

#61

Leaf 2.0 Beta 5 - 2017-04-26 16:43:00

New:

  • nested leafs in constants

Leaf 2.0 Beta 4 - 2017-04-24 19:33:26

New:

  • get on context is public

Leaf 2.0 Beta 3 - 2017-04-20 08:36:15

  • Working directory updates.

Leaf 2.0 Beta 2 - 2017-04-12 15:25:04

New:

  • Method for creating leaf files from absolute path.

Leaf 1.0.7 - 2017-04-03 16:43:34

Fixed:

  • 3.0.1 compiler warning.

Leaf 2.0 Beta 1 - 2017-03-27 15:36:53

Beta Candidate

Leaf 2.0 Alpha 2 - 2017-03-20 18:46:07

New:

  • Build errors and warnings

#49

Leaf 2.0 Alpha 1 - 2017-02-16 09:42:02

New:

  • Updated dependencies