Allow schema files that are missing checksums on the !!SCHEMAMATIC line.
[versaplex.git] / wvdotnet / htmlgentest.cs
blob39789e95fbc3fbf89bb94ae1806204da667bc193
1 /*
2 * Versaplex:
3 * Copyright (C)2007-2008 Versabanq Innovations Inc. and contributors.
4 * See the included file named LICENSE for license information.
5 */
6 using System.Collections.Generic;
7 using Wv;
9 class MyPage : WvHtml
11 WvHtml foo()
13 return li("hello");
16 IEnumerable<WvHtml> lister(params object[] args)
18 foreach (object o in args)
19 yield return li(o);
22 public MyPage(WvStream s)
24 add(html(insert_content_here));
25 twist();
26 add(head(title("hello title")));
27 add(body(insert_content_here));
28 twist();
29 add(div(_id("foo\" ''"),
30 ul(li(_class("bonk boo"), "hello", _class("chicken")),
31 li("boo"), li("<snoot>")),
32 _class("blue")
33 ));
34 add(ol(new HtmlFunc(foo)));
35 add(ol(lister("one", "two", "three",
36 ol(lister("four", "five")))));
38 s.print(ToString());
39 s.print("\n");
43 class HtmlGenTest
45 public static void Main()
47 WvLog log = new WvLog("test");
48 new MyPage(log);