Structurevapor.leaf 4.4.1Leaf->Vapor
Leaf
Application+Leaf.swift:19struct Leaf
struct Leaf
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
import Leaf
Leaf provides integrations between LeafKit and Vapor to make it easy to use Leaf templates in your Vapor app. It provides extensions to make it easy to set up, configure and use Leaf as your renderer in Vapor. It also conforms LeafRenderer
to ViewRenderer
so it can be used to render generic Views in Vapor.
final class Application
Core type representing a Vapor application.
var leaf: Leaf { get }
let application: Application
var cache: LeafCache { get nonmutating set }
var configuration: LeafConfiguration { get nonmutating set }
var renderer: LeafRenderer { get }
var sources: LeafSources { get nonmutating set }
var tags: [String : LeafTag] { get nonmutating set }
var userInfo: [AnyHashable : Any] { get nonmutating set }