GooseHtml 0.0.17-beta
This is a prerelease version of GooseHtml.
dotnet add package GooseHtml --version 0.0.17-beta
NuGet\Install-Package GooseHtml -Version 0.0.17-beta
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GooseHtml" Version="0.0.17-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GooseHtml" Version="0.0.17-beta" />
<PackageReference Include="GooseHtml" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GooseHtml --version 0.0.17-beta
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GooseHtml, 0.0.17-beta"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GooseHtml@0.0.17-beta
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GooseHtml&version=0.0.17-beta&prerelease
#tool nuget:?package=GooseHtml&version=0.0.17-beta&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Goose Html
Create Type-Safe HTML with ease using C# and GooseHtml!
Create Type-Safe HTML with Ease using GooseHtml!
Are you tired of dealing with fragile strings and runtime errors when generating HTML in your C# projects? Say goodbye to those hassles with GooseHtml, the powerful C# HTML generation library! Why Choose GooseHtml?
- Type Safety: Leverage the power of C#'s strong typing to ensure your HTML is error-free at compile time.
- It's just C#: No templating syntax or libary to learn, your html views are c# classes. Leverage object oriented design principles to create typesafe modular html components.
- Intuitive API: Create complex HTML structures with a clean and readable syntax.
- Seamless Integration: Easily integrate with your existing C# projects and start generating HTML right away.
- Enhanced Testing: Because your html views are c# classes, you can easily unit test them without requiring any additional libraries
Key Features
- Fluent API: Chain methods together to build HTML elements intuitively.
- Comprehensive Coverage: Support for all standard HTML5 elements and attributes.
- Custom Extensions: Easily extend the library with your own custom components.
How to use
NuGet
https://www.nuget.org/packages/GooseHtml
Sample Program.cs (see GooseHtml.Samples for full samples)
using GooseHtml;
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
//make a very simple html page
var page = new Html();
var head = new Head();
page.Add(head);
var body = new Body();
body.Add(new H1("Hello World!"));
page.Add(body);
app.MapGet("/", () => page.ToHtmlResult());
app.Run();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- dumpify (>= 0.6.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.17-beta | 742 | 4/13/2025 |
| 0.0.16-beta | 95 | 4/12/2025 |
| 0.0.15-beta | 94 | 4/12/2025 |
| 0.0.14-beta | 110 | 4/6/2025 |
| 0.0.13-alpha | 104 | 2/9/2025 |
| 0.0.12-alpha | 102 | 11/10/2024 |
| 0.0.11-alpha | 97 | 11/10/2024 |
| 0.0.10-alpha | 97 | 10/28/2024 |
| 0.0.9-alpha | 102 | 8/26/2024 |
| 0.0.8-alpha | 121 | 8/11/2024 |
| 0.0.7-alpha | 114 | 6/16/2024 |
| 0.0.6-alpha | 100 | 6/16/2024 |
| 0.0.5-alpha | 102 | 6/16/2024 |
| 0.0.4-alpha | 104 | 6/16/2024 |
| 0.0.3-alpha | 104 | 6/16/2024 |
| 0.0.2-alpha | 105 | 6/16/2024 |
| 0.0.1-apha | 101 | 6/16/2024 |