|
|
Home » U++ Library support » U++ MT-multithreading and servers » Htmls / HtamlTag class and table generation
|
Re: Htmls / HtamlTag class and table generation [message #34940 is a reply to message #34936] |
Sun, 18 December 2011 21:54   |
|
Hi Luigi,
Something like this?
#include <Web/Web.h>
CONSOLE_APP_MAIN{
Htmls html;
html << HtmlTable().Width(200) / (
HtmlRow() / (
HtmlTag("th") / "column 1"
+ HtmlTag("th") / "column 2"
) +
HtmlRow() / (
HtmlCell() / HtmlLink("http://ultimatepp.org") / "A1"
+ HtmlCell() / "A2"
) +
HtmlRow() / (
HtmlCell() / "B1"
+ HtmlCell() / Htmls("<i>some</i> <b>html</b> blob")
)
);
DUMP(html);
}
It seems messy, but when all the operation are performed in cycles and functions it is not that bad The rule of thumb is that '+' adds tag on the same level and '/' places tag inside.
Best regards,
Honza
|
|
|
|
|
|
Goto Forum:
Current Time: Fri May 09 16:05:08 CEST 2025
Total time taken to generate the page: 0.02787 seconds
|
|
|