Releases: ltrzesniewski/RazorBlade
Releases · ltrzesniewski/RazorBlade
Previous Next
v1.0.0
v0.11.0
- Compatibility with the .NET 10 SDK:
- Removed the
[ConditionalOnAsync]feature (it depended on CS1998 which was removed in Roslyn v5). This was necessary, otherwise RazorBlade would generate unexpected[Obsolete]attributes.
- Removed the
- Optimize internals
v0.10.0
- Added support for the
@typeparamdirective (#22)
v0.9.0
- Added support for
_ViewImports.cshtmlfiles (#18) - Added
HtmlTemplateWithLayout<TLayout>base class to easily define layouts to use
These two features can be used together to define a default layout for templates in a given directory.
v0.8.0
- The generated output is now sent directly to the provided
TextWriter(without additional buffering) when no layout is used (#13).
This reverts a change introduced in v0.5.0. - Added accessibility settings (#19):
- A
RazorBladeDefaultAccessibilityMSBuild property which sets the default accessibility:internal(default) orpublic - An
Accessibilitymetadata item onRazorBladeMSBuild items which lets you configure the accessibility per template
- A
Warning
Breaking change: the Layout property is now read-only. To provide a layout instance, override the CreateLayout method.
v0.7.0
- Added warning when using RazorBlade in an ASP.NET project (#14, #15)
- Added
PushWriter/PopWritermethods inRazorTemplate - Added support for templated delegates (#17)
- Fixed Visual Studio removing newly added
.cshtmlfiles (#16)
v0.6.0
- Added a
RazorTemplate.FlushAsyncmethod which writes the buffered content to the providedTextWriterand flushes the writer. This may be useful when rendering a template to a stream. See #13.
v0.5.0
- Added support for layout pages and sections in HTML templates:
Write a layout with@inherits RazorBlade.HtmlLayout, and specify the layout to use in a page with:@{ Layout = new LayoutToUse(); }
- Used
SearchValues<char>in .NET 8 for HTML escaping
v0.4.4
- Don't forward constructors from the base type when:
- A constructor with a matching signature is defined in the template
- They have a parameter type which is not accessible
- Make more members of
RazorTemplatevirtual - Raise an error when tag helper directives are used (#8)
v0.4.3
Previous Next