Vapor Documentation

Structure Plaintext​Renderer

public struct PlaintextRenderer: ViewRenderer  
%27 PlaintextRenderer PlaintextRenderer ViewRenderer ViewRenderer PlaintextRenderer->ViewRenderer

Conforms To

ViewRenderer

Initializers

init(fileio:​views​Directory:​logger:​event​Loop​Group:​)

public init(
        fileio: NonBlockingFileIO,
        viewsDirectory: String,
        logger: Logger,
        eventLoopGroup: EventLoopGroup
    )  

Properties

event​Loop​Group

public let eventLoopGroup: EventLoopGroup

Methods

`for`(_:​)

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

render(_:​_:​)

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