什么是 C++ 好的 HTML 模板引擎?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/537820/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 15:51:17  来源:igfitidea点击:

What's a good HTML template engine for C++?

c++templatestemplate-engine

提问by Bjorn

Possible Duplicate:
C++ HTML template framework, templatizing library, HTML generator library

可能重复:
C++ HTML 模板框架、模板化库、HTML 生成器库

Planning to write a website in C++. Would like to use a template system like Clearsilver, but maybe there's a better alternative?

打算用 C++ 写一个网站。想使用像 Clearsilver 这样的模板系统,但也许有更好的选择?

采纳答案by yesraaj

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.

Wt(发音为“witty”)是一个用于开发和部署 Web 应用程序的 C++ 库和应用程序服务器。它不是一个强制执行编程方式的“框架”,而是一个库。

回答by alphadogg

To add to the previous question:

要添加到上一个问题:

CTemplate

模板

CTPP

CTPP

You could also interface with ClearSilver (written in C) with C++.

您还可以使用 C++ 与 ClearSilver(用 C 编写)交互。

回答by Kristian

Check out Grantlee: based on Django's template system, but using C++ and Qt.

查看Grantlee:基于 Django 的模板系统,但使用 C++ 和 Qt。

回答by epatel

You can have a look at cgiccwhich help handling posted data, but it's not actually for the html generation part. Otherwise I think Clearsilveris a very good template engine that has been used professionally

您可以查看帮助处理已发布数据的cgicc,但它实际上不适用于 html 生成部分。否则我认为Clearsilver是一个非常好的模板引擎,已经被专业使用