Tags: DamianEdwards/RazorSlices
Tags
Add support for configuring which .cshtml files are Razor Slices (#75) * WIP * Support configuring which .cshtml files are slices * Fix native AOT publish after Hot Reload support was added * Make publish tests better * Remove comment * Fix benchmarks app * Workaround IL trim bug in MSQuic
Add HttpContext & support for rendering partials (slices from other s… …lices), and make slice lookup case-insensitive (#32) * Use footer partial in all sample pages * Bump version to 0.7.0 * Support partials with models * Don't access RequestServices unless needed * Make slice lookup case-insensitive Fixes #6 Fixes #22 Fixes #24
#3 Support @Inject to enable declaring dependency-injected properties… … and more (#21) * Add SliceDefinition * Update RazorSlice.ResolveAndCreate to utilize SliceDefinition * Add a new SliceFactory for slices that have injectable properties * Add support for @Inject * Add a sample using slice with injectable properties * Update GetSliceFactory method * Update LoremService to utilise StringBuilder * Rename SliceWithServiceFactory to SliceWithServicesFactory and update comments * Add bool HasInjectableProperties to SliceDefinition and update related code accordingly * Remove IHttpContextAccessor from example for DI * Change access level of SliceDefinition class to internal sealed * Update doc comments * Update src/RazorSlices/SliceFactory.cs Fixes #3
PreviousNext