Skip to content

Commit 73cf9c7

Browse files
chore: improve wording
1 parent c13efa7 commit 73cf9c7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

content/techniques/mvc.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ async function bootstrap() {
182182
bootstrap();
183183
```
184184

185-
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.
185+
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.
186+
187+
Here’s how you can set it up:
186188

187189
```typescript
188190
@@filename(app.controller)
@@ -197,7 +199,8 @@ export class AppController {
197199
}
198200
}
199201
```
200-
Alternatively, you can inject the `@Res()` decorator and response which view you want as follows:
202+
203+
Alternatively, you can use the `@Res()` decorator to directly inject the response and specify the view you want to render, as shown below:
201204

202205
```typescript
203206
import { Res } from '@nestjs/common';

0 commit comments

Comments
 (0)