Releases: ltrzesniewski/RazorBlade
Releases · ltrzesniewski/RazorBlade
v0.6.0
- Added a
RazorTemplate.FlushAsync
method which writes the buffered content to the provided TextWriter
and 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
RazorTemplate
virtual
- Raise an error when tag helper directives are used (#8)
v0.4.2
- Fixed a build failure for targets below net5.0 (#5)
v0.4.1
- Fix incompatibility between embedded library mode and RazorBlade-specific features (#4)
v0.4.0
- Add the ability to embed the runtime library in the target project (#3)
- Add a helper
Raw
method in HtmlTemplate
as a shorthand for Html.Raw
v0.3.1
- Better support in ReSharper/Rider 2022.3
- Added
<inheritdoc>
on constructors
v0.3.0
- Add built-in
CancellationToken
support (#2)
- Hide
Render
methods with obsolete ones when the generated template is asynchronous
- Add a better error message when the
@model
directive is used
v0.2.0
Add support for ASP.NET conditional attributes:
- A
foo="@bar"
attribute will be omitted if bar
evaluates to false
or null
- A
foo="@bar"
attribute will be rendered as foo="foo"
if bar
evaluates to true
, unless foo
is a data-*
attribute