Complete overhaul of implementation and API semantics to support trimming and native AOT fully.
Drops support for .NET 6 and .NET 7. Now requires .NET 8
Adds support for trimming and native AOT
Adds a source generator that generates static IRazorSliceProxy classes for every .cshtml file in the project. Razor slices are now created using [GeneratedSliceProxyType].Create(), e.g. Todos.Create(). Generated types are put in a namespace following the relative directory the .cshtml file is in (similar to Razor Components).
Adds support for layouts and sections, including nested layouts and layouts with models
BREAKING CHANGE
Complete overhaul of implementation and API semantics to support trimming and native AOT fully.
IRazorSliceProxy
classes for every .cshtml file in the project. Razor slices are now created using[GeneratedSliceProxyType].Create()
, e.g.Todos.Create()
. Generated types are put in a namespace following the relative directory the .cshtml file is in (similar to Razor Components).Fixes #2 Fixes #31 Fixes #37 Fixes #43