-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
84859cb
commit 71b49db
Showing
4 changed files
with
62 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# RazorBlade | ||
|
||
*The sharpest part of the razor.* | ||
**Compile Razor templates at build-time without a dependency on ASP.NET.** | ||
|
||
Compile Razor templates at build-time without a dependency on ASP.NET. | ||
RazorBlade is meant to be *lightweight* and *self-contained*: cshtml files are compiled into C# classes at build-time with a Roslyn source generator. No reference to ASP.NET is required. | ||
|
||
See the [GitHub repository](https://github.com/ltrzesniewski/RazorBlade) for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/RazorBlade.IntegrationTest/Examples/TemplateWithManualModel.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@using MyApplication | ||
@inherits RazorBlade.HtmlTemplate | ||
|
||
Hello, <i>@Model.Name</i>! | ||
|
||
@functions | ||
{ | ||
public required GreetingModel Model { get; init; } | ||
} |