#include "cgi_html.h"
#include <iostream>
Include dependency graph for Main.cpp:
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 5 of file Main.cpp.
References Cgi::ElementList::Add(), and Cgi::HtmlDocument::ToString().
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 // body 00017 { 00018 Cgi::Body body; 00019 doc.Add(body); 00020 } 00021 // 00022 std::string str = doc.ToString(); 00023 std::cout << str << std::endl; 00024 }