Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
askonomm committed Nov 6, 2024
1 parent e6d499c commit f294b78
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Htmt/Htmt.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<Nullable>enable</Nullable>
<Authors>Asko Nõmm</Authors>
<PackageId>Htmt</PackageId>
<Version>2.1.3</Version>
<Version>2.2.0</Version>
<Description>Templating library with native AOT and trimming support.</Description>
<PackageTags>html xml template templating engine compiler parser aot trimming</PackageTags>
<PackageProjectUrl>https://github.com/askonomm/htmt</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/askonomm/htmt</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageReleaseNotes>Cleaning Xmlns attribute from final markup children.</PackageReleaseNotes>
<PackageReleaseNotes>Added ability to use interpolated expressions in partial attributes.</PackageReleaseNotes>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

Expand Down
9 changes: 9 additions & 0 deletions HtmtTests/ParserTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ public void TestVoidElButOpen()
Assert.AreEqual("<html><head></head><body><img src=\"asd\" /><br /><hr /></body></html>", parser.ToHtml());
}

[TestMethod]
public void TestVoidElButOpen2()
{
const string template = "<html><head></head><body><ul><li>text<br></li></ul><hr></body></html>";
var parser = new Htmt.Parser { Template = template };

Assert.AreEqual("<html><head></head><body><ul><li>text<br /></li></ul><hr /></body></html>", parser.ToHtml());
}

[TestMethod]
public void TestHtmlEntities()
{
Expand Down

0 comments on commit f294b78

Please sign in to comment.