render abstract method
Renders the page HTML content.
Receives the typed data returned by loader (if it returned PageData) and the original request for access to path/query params.
This method should return the body content (not a full HTML document). The framework wraps this in a complete HTML page with proper head, scripts, stylesheets, etc.
Example
@override
dynamic render(User data, PageRequest request) {
return div([
h1(data.name),
p('Email: ${data.email}'),
a(href: "/users/${data.id}/edit", ['Edit Profile']),
]);
}
Implementation
Node render(T data, PageRequest request);