What are you thoughts about a simplified abstracted HTML generation
with CSS/JS from Wt?
e.g.:
#include <css>
#include <html>
#include <vector>
int main(void) {
HTML::HTML page;
page.title("my title");
page.heading.font(15);
std::vector<std::string> para = <vector of paragraphs>;
CSS::CSS layout;
layout.grid(2,2);
layout.fill(xcoords_as_percentage, ycoords_as_percentage);
page.use_css(layout);
for(int i=0; i<para.size(); i++, x++) {
if(x==grid.x.size()) x=0, y++;
page.grid[x][y]=para[i];
if(y==grid.y.size()) break;
}
page.header1("I am header1");
page.footer("I am page footer");
layout.order(page.header1[0], page.grid.all(), page.footer());
generate_html("index.html");
generate_css("layout.css");
}
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest