Gandorphi.Html_Generator 2.0.0

Easy and simple way to write Html with C#.

Install-Package Gandorphi.Html_Generator -Version 2.0.0
dotnet add package Gandorphi.Html_Generator --version 2.0.0
<PackageReference Include="Gandorphi.Html_Generator" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Gandorphi.Html_Generator --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Gandorphi.Html_Generator, 2.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Gandorphi.Html_Generator as a Cake Addin
#addin nuget:?package=Gandorphi.Html_Generator&version=2.0.0

// Install Gandorphi.Html_Generator as a Cake Tool
#tool nuget:?package=Gandorphi.Html_Generator&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

private string LoadHtml()
{
var root = new html
{
N = new N{
new head { N = new N{
new meta(),
new title { TextContent = "Biograph" },
new link { Rel = rel.icon, hRef = "favicon.png"},
new style { TextContent = LoadCss()},
new h1 { Align = Align.center, TextContent = $"About { (new a { hRef = "http://www.google.com/", TextContent = "Me" }).ToString ()}" }
} },
new main{ N = new N{
new body { N = new N{
new img { src = "foto.png", alt = "foto"},
new p { TextContent = "Text info1" },
new p { TextContent = "Text info 2" },
new blockquote{ N = new N{
new p { TextContent = "Quote" },
new cite { TextContent = "Author" },
} },
new nav{ N = new N{
new ul{ N = new N{
new li { N = new N{ new a { hRef = "#",TextContent = "home" }, } },
new li { N = new N{ new a { hRef = "#",TextContent = "port" }, } }, }
}
} },
new footer { TextContent = "© Gandorphi"},
} }
} }
}
};
return root.ToString();
}

private string LoadHtml()
{
var root = new html
{
N = new N{
new head { N = new N{
new meta(),
new title { TextContent = "Biograph" },
new link { Rel = rel.icon, hRef = "favicon.png"},
new style { TextContent = LoadCss()},
new h1 { Align = Align.center, TextContent = $"About { (new a { hRef = "http://www.google.com/", TextContent = "Me" }).ToString ()}" }
} },
new main{ N = new N{
new body { N = new N{
new img { src = "foto.png", alt = "foto"},
new p { TextContent = "Text info1" },
new p { TextContent = "Text info 2" },
new blockquote{ N = new N{
new p { TextContent = "Quote" },
new cite { TextContent = "Author" },
} },
new nav{ N = new N{
new ul{ N = new N{
new li { N = new N{ new a { hRef = "#",TextContent = "home" }, } },
new li { N = new N{ new a { hRef = "#",TextContent = "port" }, } }, }
}
} },
new footer { TextContent = "© Gandorphi"},
} }
} }
}
};
return root.ToString();
}

Dependencies

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.0 539 5/27/2018
1.1.0 486 5/9/2018
1.0.1 499 4/25/2018
1.0.0 504 4/12/2018