C++ HTML generation classes

2020-06-22 06:20发布

A question prompted by jbar's question.

In scripting languages like Python, Ruby, and Perl, there are libraries that simplify generating dynamic HTML. (For example, the cgi module in Ruby.)

Are there any similar packages for C++? I don't know of one, and at least some desultory googling didn't reveal one.

标签: c++ html
2条回答
\"骚年 ilove
2楼-- · 2020-06-22 06:59

Cgicc does HTML generation. I've toyed with it once, and it seemed pretty nice.

查看更多
欢心
3楼-- · 2020-06-22 07:01

http://www.webtoolkit.eu/wt#/

I don't know anything about it, but their web-page is clean and the introduction sounds like exactly what you're looking for...

Wt (pronounced 'witty') is a C++ library and application server for developing and deploying web applications. It is not a 'framework', which enforces a way of programming, but a library.

...

In contrast, a web application developed with Wt is written in only one compiled language (C++), from which the library generates the necessary HTML/XHTML, Javascript, CGI, SVG/VML/Canvas and AJAX code.

查看更多
登录 后发表回答