00001 #include "cgi_html.h"
00002 #include <iostream>
00003
00004
00005 int main(int argc, char *argv[])
00006 {
00007 Cgi::HtmlDocument doc;
00008 {
00009 Cgi::Title title("My document");
00010 Cgi::Style style1("text/css", "A { text-decoration: none; color: #0000ff; }");
00011 Cgi::Head head;
00012 head.Add(title);
00013 head.Add(style1);
00014 doc.Add(head);
00015 }
00016
00017 {
00018 Cgi::Body body;
00019 doc.Add(body);
00020 }
00021
00022 std::string str = doc.ToString();
00023 std::cout << str << std::endl;
00024 }
00025
00026