DotNet2HTML 1.0.0

C# (.NET) to HTML Generator

Install-Package DotNet2HTML -Version 1.0.0
dotnet add package DotNet2HTML --version 1.0.0
<PackageReference Include="DotNet2HTML" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DotNet2HTML --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

DotNet2HTML

C# (.Net) to HTML generator. Enjoy typesafe HTML generation.

This project is inspired by j2html.

Getting started

Import the TagCreator and start building HTML

using DotNet2HTML.Tags;
using static DotNet2HTML.TagCreator;

namespace Program {  
  class Program {
    public static void Main(string[] args) {
      Body(
        H1("Hello, World!"),
        Img().WithSrc("/img/hello.png")
      ).Render();
    }    
  }
}

The above C# will result in the following HTML:

<body>
    <h1>Hello, World!</h1>
    <img src="/img/hello.png">
</body>

DotNet2HTML

C# (.Net) to HTML generator. Enjoy typesafe HTML generation.

This project is inspired by j2html.

Getting started

Import the TagCreator and start building HTML

using DotNet2HTML.Tags;
using static DotNet2HTML.TagCreator;

namespace Program {  
  class Program {
    public static void Main(string[] args) {
      Body(
        H1("Hello, World!"),
        Img().WithSrc("/img/hello.png")
      ).Render();
    }    
  }
}

The above C# will result in the following HTML:

<body>
    <h1>Hello, World!</h1>
    <img src="/img/hello.png">
</body>

  • .NETStandard 2.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 561 8/26/2018