View Rendering
Docs Home | Previous: Modules | Next: Logging and Caller Context
Use @Render to return server-rendered HTML templates from controller methods.
Requirements
- Configure viewEngine in createApp.
- Use @Render("template-name") on the route method.
Example
Notes
- Default extension is .hbs.
- View routes are excluded from the OpenAPI spec.
- You can disable template source caching in development.