Skip to content

Commit

Permalink
chore: improve wording
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Oct 17, 2024
1 parent c13efa7 commit 73cf9c7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions content/techniques/mvc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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';
Expand Down

0 comments on commit 73cf9c7

Please sign in to comment.