Skip to content

Commit c6ff488

Browse files
Update README.md
1 parent 80a0425 commit c6ff488

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ output:
169169
string content = @"Hello @A, @B, @Decorator(123)";
170170

171171
IRazorEngine razorEngine = new RazorEngine();
172-
IRazorEngineCompiledTemplate<CustomModel> template = razorEngine.Compile<CustomModel>(content);
172+
IRazorEngineCompiledTemplate<CustomTemplate> template = razorEngine.Compile<CustomTemplate>(content);
173173

174174
string result = template.Run(instance =>
175175
{
@@ -180,7 +180,7 @@ string result = template.Run(instance =>
180180
Console.WriteLine(result);
181181
```
182182
```cs
183-
public class CustomModel : RazorEngineTemplateBase
183+
public class CustomTemplate : RazorEngineTemplateBase
184184
{
185185
public int A { get; set; }
186186
public string B { get; set; }

0 commit comments

Comments
 (0)