Possible Duplicate:
C++ HTML template framework, templatizing library, HTML generator library
Planning to write a website in C++. Would like to use a template system like Clearsilver, but maybe there's a better alternative?
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.
Check out Grantlee: based on Django's template system, but using C++ and Qt.
You can have a look at cgicc which help handling posted data, but it's not actually for the html generation part. Otherwise I think Clearsilver is a very good template engine that has been used professionally
来源:https://stackoverflow.com/questions/537820/whats-a-good-html-template-engine-for-c