问题
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?
回答1:
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.
回答2:
To add to the previous question:
CTemplate
CTPP
You could also interface with ClearSilver (written in C) with C++.
回答3:
Check out Grantlee: based on Django's template system, but using C++ and Qt.
回答4:
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