inja:现代C ++的模板引擎

时间:2021-05-06 17:01:43
【文件属性】:
文件名称:inja:现代C ++的模板引擎
文件大小:408KB
文件格式:ZIP
更新时间:2021-05-06 17:01:43
template c-plus-plus template-engine header-only jinja Inja是现代C ++的模板引擎,其灵感来自 for python。 它具有简单而强大的模板语法,其中包含您需要的所有变量,循环,条件,包含,回调和注释,并根据需要进行嵌套和组合。 Inja使用nlohmann的精彩库进行数据输入。 最重要的是,inja只需要两个头文件,(几乎)与C ++中的集成一样简单。 当然,所有内容都在所有相关的编译器上进行了测试。 看起来是这样的: json data; data[ " name " ] = " world " ; inja::render ( " Hello {{ name }}! " , data); // Returns "Hello world!" 一体化 Inja是仅标头的库,可以从或直接从include/或single_include/文件夹下载。 Inja使用nlohmann/json.hpp (> = v3.8.0)作为其单个依赖
【文件预览】:
inja-master
----.github()
--------FUNDING.yml(445B)
--------workflows()
----scripts()
--------update_single_include.sh(206B)
--------amalgamate_config.json(126B)
----.clang-format(92B)
----requirements.txt(21B)
----doc()
--------logo.svg(12KB)
--------support.md(283B)
--------logo.jpg(20KB)
--------Doxyfile(106KB)
--------logo-doxygen.jpg(12KB)
----CMakeLists.txt(5KB)
----LICENSE(3KB)
----test()
--------test-renderer.cpp(11KB)
--------test.cpp(350B)
--------test-functions.cpp(12KB)
--------test-files.cpp(3KB)
--------benchmark.cpp(1002B)
--------data()
--------test-units.cpp(1KB)
----cmake()
--------config()
--------CoverallsGenerateGcov.cmake(17KB)
--------CoverallsClear.cmake(1KB)
--------Coveralls.cmake(5KB)
----README.md(14KB)
----single_include()
--------inja()
----.gitignore(346B)
----third_party()
--------amalgamate()
--------include()
----meson.build(928B)
----include()
--------inja()

网友评论