Skip to content

PeoB/HtmlSpikeCreator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HtmlSpikeCreator

A simple spike to allow some fast html generation in C#

##Examples

###Hello world

private dynamic _ = HtmlFactory.CreateHtmlFactory();
var html=_.html().ToString();
//html is "<html></html>"

###Tags with content

_.html(
    _.head(_.title("Sweet stuff")),
    _.body(
        _.h1("Hello world!"))).ToString();

###Tags with attributes

_.html(
    _.body(@class: "myClass"),
    lang: "en")

More to come!

About

A simple spike to allow some fast html generation in C#

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published