Skip to content

Instance Method

render(path:context:)

Populate the template at path with the data from context.
func render(path: String, context: some Encodable) -> EventLoopFuture<ByteBuffer>

Parameters

path

The name of the template to render.

context

Contextual data to render the template with.

Return Value

The serialized bytes of the rendered template.