C++ 模板引擎 cpptempl

码农软件 · 软件分类 · 模板引擎 · 2019-08-23 05:57:47

软件介绍

cpptempl 是一个 C++ 模板引擎。

语法:

模板流

  • Variables

{$variable}
  • Loops:

{% for person in people %}Name: {$person.name}{% endfor %}
  • If:

{% if person.name == "xu" %}Full name: xu{% endif %}

使用:

cpptempl::auto_data data;
data["age"] = 10;
data["name"] = "xu";
std::string str = "name:{$name}, age:{$age}";
std::string ret = cpptempl::parse(str, data);  // ret will be "name:xu, age:10"


本文地址:https://codercto.com/soft/d/12964.html

Design for Hackers

Design for Hackers

David Kadavy / Wiley / 2011-10-18 / USD 39.99

Discover the techniques behind beautiful design?by deconstructing designs to understand them The term ?hacker? has been redefined to consist of anyone who has an insatiable curiosity as to how thin......一起来看看 《Design for Hackers》 这本书的介绍吧!

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具