diff --git a/Readme.md b/Readme.md index c88cb1e..635f383 100644 --- a/Readme.md +++ b/Readme.md @@ -299,10 +299,10 @@ where the template might look like this: @Model.Name @Model.Company @Model.Address.City @Model.Entered - @{for (int i = 0; i < 10; i++) - { - Response.WriteLine(i + "."); - } + @for (int i = 0; i < 10; i++) + { + Response.WriteLine(i + "."); + } You can also render nested templates from string @RenderTemplate("Child Template rendered from String. Name: @Model.Name",Model) diff --git a/Westwind.RazorHosting.Tests/FileTemplates/HelloWorldWithModelSyntax.cshtml b/Westwind.RazorHosting.Tests/FileTemplates/HelloWorldWithModelSyntax.cshtml index 5f4443b..469177d 100644 --- a/Westwind.RazorHosting.Tests/FileTemplates/HelloWorldWithModelSyntax.cshtml +++ b/Westwind.RazorHosting.Tests/FileTemplates/HelloWorldWithModelSyntax.cshtml @@ -6,12 +6,12 @@