Skip to content

2.0.0-beta.1

Compare
Choose a tag to compare
@MatsMoll MatsMoll released this 27 Dec 22:33

Moved the Vapor providers into two different repositories for Vapor 3 and Vapor 4. As well as performance and stability improvements. There is also added more protocols in order to limit the possibility of adding an attribute that is meaningless attribute to a node.

Added a Unwrap feature:

Unwrap(context.user) { user in
    P { "Welcome, " }
    Bold { user.name }
}

Made TemplateValue a property wrapper:

struct UserTemplate: HTMLTemplate {

    @TemplateValue(User.self) 
    var context

    var body: HTML { ... }
}