C ++ HTML模板框架,模板化库,HTML生成器库 [英] C++ HTML template framework, templatizing library, HTML generator library
问题描述
我正在寻找类似于eg的C ++的模板/生成器库。 Ruby的Erb,Haml,PHP的Smarty等。
I am looking for template/generator libraries for C++ that are similar to eg. Ruby's Erb, Haml, PHP's Smarty, etc.
如果我会运行一些基本的功能,如循环,if / else,int转换为字符串等。
It would be great if I it would sport some basic features like loops, if/else, int conversion to strings, etc.
参数传递到模板渲染引擎也很重要,如果我可以传递所有的哈希映射,而不是为每个参数调用一些函数。
Parameter passing to template rendering engine is also important if I could pass all of them in a hash map instead of calling some function for each of parameters.
你有什么建议吗?
我还可以看到嵌入Lua语言的可能性,
I can see also the possibility of embedding languages like Lua, however I haven't found a templatizing library for that either.
推荐答案
对所提及的项目进行快速回顾。
A quick review of the mentioned project.
http://rgrz.tumblr.com / post / 13808947359 / review-of-html-template-engines-in-c-language
- 网站: http://www.clearsilver.net
- 计划: https://code.google.com/p/clearsilver/
- 群组: http://tech.groups.yahoo.com/group/ClearSilver
- 许可证:新的BSD许可证
- 语言:C
- 最后更新:2011年11月28日
- 上次发布时间:2007年7月12日0.10.5
- 文件:Rich
- 每月10次讨论)
- Site: http://www.clearsilver.net
- Project: https://code.google.com/p/clearsilver/
- Group: http://tech.groups.yahoo.com/group/ClearSilver
- License: New BSD License
- Language: C
- Last Update: Nov 28, 2011
- Last Release: 0.10.5 on July 12, 2007
- Document: Rich
- Community: Medium (<10 discussion per month)
- 网站: http://teng.sourceforge.net
- 代码:http://teng.svn.sourceforge.net/teng/
- 小组: http://sourceforge.net/projects/teng/
- 许可证:新BSD许可证 li>
- 语言:C ++
- 绑定:php,python
- 最后更新:2011年3月8日
- 最新版本:2.1.1,2011年3月8日
- 文件:Rich
- 2010)
- Site: http://teng.sourceforge.net
- Code: http://teng.svn.sourceforge.net/teng/
- Group: http://sourceforge.net/projects/teng/
- License: New BSD License
- Language: C++
- Binding: php, python
- Last Update: Mar 8, 2011
- Last Release: 2.1.1 on Mar 8, 2011
- Document: Rich
- Community: Low (rare discussion since 2010)
- http://www.lazarusid.com/libtemplate.shtml
- 项目:
- / C>
- 最近更新:未知
- 最后发布:未知
- 社区:无
- Site: http://www.lazarusid.com/libtemplate.shtml
- Project: download only
- Group: none
- License: free to use
- Language: C (low level)/C++ (interface) mixed
- Last Update: unknown
- Last Release: unknown
- Document: none
- Community: none
- 网站: http://nulidex.com/code/docs/html_template/
- 专案: http://sourceforge.net/projects/htmltemplatec
- 小组: http://sourceforge.net/projects/htmltemplatec
- 许可证:GPL
- 语言:C ++
- 最后更新:2011年3月27日
- 最新版本:Beta 0.7.4,2011年3月27日
- 文件:中
- 社群:无
- Site: http://nulidex.com/code/docs/html_template/
- Project: http://sourceforge.net/projects/htmltemplatec
- Group: http://sourceforge.net/projects/htmltemplatec
- License: GPL
- Language: C++
- Last Update: Mar 27, 2011
- Last Release: Beta 0.7.4, Mar 27, 2011
- Document: Medium
- Community: none
- 网站: http://ctpp.havoc.ru/en/
- 专案:仅下载
- Group:none
- 许可证:BSD许可证
- 语言:C ++ with C API
- 2011年10月5日
- 最新版本:2011年10月5日版本2.7.2
- 文件:Rich
- 社群:无
- Site: http://ctpp.havoc.ru/en/
- Project: download only
- Group: none
- License: BSD License
- Language: C++ with C API
- Last Update: Oct 5, 2011
- Last Release: Version 2.7.2 on Oct 5, 2011
- Document: Rich
- Community: none
- 网站: http://www.webtoolkit.eu/wt/
- 项目: http://www.webtoolkit.eu/wt/
- 小组:< a href =http://www.webtoolkit.eu/wt/community> http://www.webtoolkit.eu/wt/community
- 许可证:GPL
- 最近更新:2011年11月29日
- 语言:C ++ 0于2011年11月29日
- 文件:Rich
- 社群:低(罕见活动)
- Site: http://www.webtoolkit.eu/wt/
- Project: http://www.webtoolkit.eu/wt/
- Group: http://www.webtoolkit.eu/wt/community
- License: GPL and Commercial
- Language: C++
- Last Update: Nov 29, 2011
- Last Release: 3.2.0 on Nov 29, 2011
- Document: Rich
- Community: Low (rare activity)
- 网站: http://flate.dead-inside.org/
- 项目:无
- / li>
- 许可证:LGPL v2.1
- 语言:C
- 最后更新:2010年9月4日
-
- 最后发布日期:2010年9月4日2.0。
- 文件:可能
-
- Site: http://flate.dead-inside.org/
- Project: none
- Group: none
- License: LGPL v2.1
- Language: C
- Last Update: Sep 4, 2010
- Last Release: 2.0 on Sep 4, 2010
- Document: Poor
- Community: none
这篇关于C ++ HTML模板框架,模板化库,HTML生成器库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!