Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
adoconnection authored Oct 12, 2022
1 parent 80a0425 commit c6ff488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ output:
string content = @"Hello @A, @B, @Decorator(123)";

IRazorEngine razorEngine = new RazorEngine();
IRazorEngineCompiledTemplate<CustomModel> template = razorEngine.Compile<CustomModel>(content);
IRazorEngineCompiledTemplate<CustomTemplate> template = razorEngine.Compile<CustomTemplate>(content);

string result = template.Run(instance =>
{
Expand All @@ -180,7 +180,7 @@ string result = template.Run(instance =>
Console.WriteLine(result);
```
```cs
public class CustomModel : RazorEngineTemplateBase
public class CustomTemplate : RazorEngineTemplateBase
{
public int A { get; set; }
public string B { get; set; }
Expand Down

0 comments on commit c6ff488

Please sign in to comment.