Skip to content

Releases: ltrzesniewski/RazorBlade

v0.6.0

07 Apr 15:19
Compare
Choose a tag to compare
  • 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

02 Dec 18:09
Compare
Choose a tag to compare
  • 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

17 Sep 19:27
Compare
Choose a tag to compare
  • 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.3

03 Apr 20:55
Compare
Choose a tag to compare

v0.4.2

07 Jan 13:14
Compare
Choose a tag to compare
  • Fixed a build failure for targets below net5.0 (#5)

v0.4.1

06 Dec 20:35
Compare
Choose a tag to compare
  • Fix incompatibility between embedded library mode and RazorBlade-specific features (#4)

v0.4.0

29 Nov 20:08
Compare
Choose a tag to compare
  • 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

09 Nov 16:08
Compare
Choose a tag to compare
  • Better support in ReSharper/Rider 2022.3
  • Added <inheritdoc> on constructors

v0.3.0

06 Nov 19:30
Compare
Choose a tag to compare
  • 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

06 Oct 22:22
Compare
Choose a tag to compare

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