Skip to content
This repository was archived by the owner on Oct 13, 2026. It is now read-only.
JJConsultingPublic archive

About

Fluent HTML Builder for .NET

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

JJConsulting.Html – Fluent HTML Builder for .NET

JJConsulting.Html provides a fluent, low-allocation, strongly typed API for constructing HTML in .NET. It is suitable for scenarios where a templating engine is not desirable, and where full programmatic control is required.


Installation

dotnet add package JJConsulting.Html

Basic Usage

var html =
    new HtmlBuilder(HtmlTag.Div)
        .WithCssClass("container")
        .AppendDiv(d =>
            d.WithCssClass("header")
             .AppendText("Hello world!")
        )
        .AppendBr()
        .AppendLink("Click here", "https://example.com")
        .ToString(true);

Produces:

<div class="container">
  <div class="header">Hello world!</div>
  <br />
  <a href="https://example.com">Click here</a>
</div>

Warning

Repository Moved

This repository has been moved to jjconsulting/jjmasterdata.

Please use the new repository to access the source code, follow updates, and report issues.

About

Fluent HTML Builder for .NET

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages