Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/dependencies.props
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

<DapperVersion>2.1.66</DapperVersion>
<DapperAotVersion>1.0.48</DapperAotVersion>
<RazorSlicesVersion>0.8.1</RazorSlicesVersion>
<RazorSlicesVersion>0.10.1</RazorSlicesVersion>
<SystemCommandLineVersion>2.0.0-beta4.22272.1</SystemCommandLineVersion>
<MicrosoftCrankEventSourcesVersion>0.2.0-alpha.24114.2</MicrosoftCrankEventSourcesVersion>
<OpenTelemetryVersion>1.9.0</OpenTelemetryVersion>
Expand Down
4 changes: 2 additions & 2 deletions src/Benchmarks/Templates/_ViewImports.cshtml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@inherits RazorSliceHttpResult
@inherits RazorSlice

@using System.Globalization;
@using Microsoft.AspNetCore.Razor;
Expand All @@ -7,4 +7,4 @@
@using Benchmarks.Data;

@tagHelperPrefix __disable_tagHelpers__:
@removeTagHelper *, Microsoft.AspNetCore.Mvc.Razor
@removeTagHelper *, Microsoft.AspNetCore.Mvc.Razor
2 changes: 1 addition & 1 deletion src/BenchmarksApps/TechEmpower/Minimal/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
app.MapGet("/fortunes", async (HttpContext context, Db db, HtmlEncoder htmlEncoder) => {
var fortunes = await db.LoadFortunesRows();
//var fortunes = await db.LoadFortunesRowsNoDb(); // Don't call the database
var template = (RazorSliceHttpResult<List<Fortune>>)Fortunes.Create(fortunes);
var template = Fortunes.Create(fortunes);
template.HtmlEncoder = htmlEncoder;
return template;
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@inherits RazorSliceHttpResult<List<Fortune>>
<!DOCTYPE html><html><head><title>Fortunes</title></head><body><table><tr><th>id</th><th>message</th></tr>@foreach (var item in Model){<tr><td>@WriteNumber(item.Id, default, CultureInfo.InvariantCulture, false)</td><td>@item.Message</td></tr>}</table></body></html>
@inherits RazorSlice<List<Fortune>>
<!DOCTYPE html><html><head><title>Fortunes</title></head><body><table><tr><th>id</th><th>message</th></tr>@foreach (var item in Model){<tr><td>@WriteNumber(item.Id, default, CultureInfo.InvariantCulture, false)</td><td>@item.Message</td></tr>}</table></body></html>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@inherits RazorSliceHttpResult
@inherits RazorSlice

@using System.Globalization;
@using Microsoft.AspNetCore.Razor;
Expand All @@ -7,4 +7,4 @@
@using Minimal.Models;

@tagHelperPrefix __disable_tagHelpers__:
@removeTagHelper *, Microsoft.AspNetCore.Mvc.Razor
@removeTagHelper *, Microsoft.AspNetCore.Mvc.Razor
Loading