Created
June 20, 2012 17:42
-
-
Save einarwh/2961123 to your computer and use it in GitHub Desktop.
Composition of simple, one-tag transforms.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Func<string, string> cell = | |
s => s.Tag("td").Colspan("2") | |
.Width("100"); | |
Func<string, string> row = | |
s => s.Tag("tr"); | |
Func<string, string> table = | |
s => s.Tag("table").Cellpadding("10") | |
.Border("1"); | |
Func<string, string> nested = | |
s => table(row(cell(s))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment