Skip to content

kdrcetintas/templategenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

templategenerator

Information:

It's a dynamic html generator and object parser via property names with reflection.
Usable at send information mails, account registration / confirm emails, and more.
*Currently no comment lines at the class

Example Usage:

var Output = new TemplateGenerator()
.SetCharacterSet("utf-8")
.SetGlobalFonts("Tahoma", "10px", 400)
.LoadCssFromString("tr > td {padding: 5px;}")
.OpenTable("600px", 0, 0, "left", "")
.OpenTableBody()
.OpenTableRow()
.OpenAndCloseTableRowCell("", "", "Name:")
.OpenAndCloseTableRowCell("", "", "{{FirstName}}")
.OpenAndCloseTableRowCell("", "", "Surname:")
.OpenAndCloseTableRowCell("", "", "{{LastName}}")
.CloseTableRow()
.OpenTableRow()
.OpenAndCloseTableRowCell("", "", "Identity No:")
.OpenAndCloseTableRowCell("", "", "{{IdentityNo}}")
.OpenAndCloseTableRowCell("", "", "Email:")
.OpenAndCloseTableRowCell("", "", "{{Email}}")
.CloseTableRow()
.CloseTableBody()
.CloseTable()
.SetParserMarkup("{{Key}}")
.ParseValuesByObject(findedSimpleObject)
.GetOutput();

Updates:

Cache generated templates, and parse directly by reading them. (Soon as possible)

About

Dynamic html generator and object parser via property names with reflection.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages