diff --git a/content/techniques/mvc.md b/content/techniques/mvc.md index 8d6af03981..e2d88e717d 100644 --- a/content/techniques/mvc.md +++ b/content/techniques/mvc.md @@ -182,7 +182,9 @@ async function bootstrap() { bootstrap(); ``` -The Fastify API is slightly different but the end result of those methods calls remains the same. One difference to notice with Fastify is that the template name passed into the `@Render()` decorator must include a file extension. +The Fastify API has a few differences, but the end result of these method calls is the same. One notable difference is that when using Fastify, the template name you pass into the `@Render()` decorator must include the file extension. + +Here’s how you can set it up: ```typescript @@filename(app.controller) @@ -197,7 +199,8 @@ export class AppController { } } ``` -Alternatively, you can inject the `@Res()` decorator and response which view you want as follows: + +Alternatively, you can use the `@Res()` decorator to directly inject the response and specify the view you want to render, as shown below: ```typescript import { Res } from '@nestjs/common';