RoutedViewRender extension

Renders view content from an EngineContext.

The extension uses the request container's ViewEngineManager, then writes the result with a portable Content-Type: text/html; charset=utf-8 header. Generic response helpers such as string, json, html, and redirect remain in package:routed_core.

on

Methods

view(String template, {Map<String, dynamic> data = const {}, int statusCode = HttpStatus.ok}) → Future<Response>

Available on EngineContext, provided by the RoutedViewRender extension

Renders template and writes the result as an HTML response.