Vapor Documentation

Protocol View​Renderer

public protocol ViewRenderer  
%743 ViewRenderer ViewRenderer PlaintextRenderer PlaintextRenderer PlaintextRenderer->ViewRenderer

Types Conforming to View​Renderer

PlaintextRenderer

Default Implementations

render(_:​_:​)

func render<E>(_ name: String, _ context: E) async throws -> View where E: Encodable  

render(_:​)

func render(_ name: String) async throws -> View  

render(_:​)

public func render(_ name: String) -> EventLoopFuture<View>  

Requirements

`for`(_:​)

func `for`(_ request: Request) -> ViewRenderer

render(_:​_:​)

func render<E>(_ name: String, _ context: E) -> EventLoopFuture<View>
        where E: Encodable