ViewRenderer

protocol ViewRenderer : AnyObject
  • Renders the template at the supplied path with an empty context.

    try req.view().make("home")
    

    Declaration

    Swift

    public func render(_ path: String) -> Future<View>

    Parameters

    path

    Path to file containing the template.

    Return Value

    Future containing the rendered View.