Update razor.md (#10467)

pull/10469/head
Shadi Namrouti 2019-01-18 01:15:17 +02:00 committed by Luke Latham
parent d464600bf3
commit 408bd4c207
1 changed files with 2 additions and 2 deletions

View File

@ -539,7 +539,7 @@ public class Pet
```cshtml
@{
Func<dynamic, object> petTemplate = @<p>You have a pet named @item.Name.</p>;
Func<dynamic, object> petTemplate = @<p>You have a pet named <strong>@item.Name</strong>.</p>;
var pets = new List<Pet>
{
@ -555,7 +555,7 @@ The template is rendered with `pets` supplied by a `foreach` statement:
```cshtml
@foreach (var pet in pets)
{
@petTemplate2(pet)
@petTemplate(pet)
}
```