You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
@@ -59,35 +59,35 @@ In simplest case, if you don't want to understand Jinja2C++ build script interna
59
59
"Path to install folder" here is a path to the folder where you want to install Jinja2Cpp lib.`DJINJA2CPP_DEPS_MODE` define with`internal` value creates the build script which will take external dependencies from the submodules.
60
60
5. Build library:
61
61
```
62
-
> cmake --build .
62
+
> cmake --build .
63
63
```
64
64
6. Install library (if necessary):
65
65
```
66
-
> cmake --build .
66
+
> cmake --build .
67
67
```
68
68
69
69
###Use with conan.io dependency manager
70
70
Jinja2C++ can be used as conan.io package. In this case you should do the following steps:
71
71
72
72
1. Install conan.io according to the documentation (https://docs.conan.io/en/latest/installation.html )
73
-
2. Add reference to Jinja2C++ package (`jinja2cpp/1.1.0`) to your conanfile.txt, conanfile.py or CMakeLists.txt. For instance, with usage of`conan-cmake` integration it could be written this way:
73
+
2. Add reference to Jinja2C++ package (`jinja2cpp/1.2.1`) to your conanfile.txt, conanfile.py or CMakeLists.txt. For instance, with usage of`conan-cmake` integration it could be written this way:
74
74
75
75
```cmake
76
76
include (../../cmake/conan.cmake)
77
77
if (NOT MSVC)
78
78
set (CONAN_SETTINGS SETTINGS compiler.libcxx=libstdc++11)
#Bring the powerful text template engine to your C++ project!
12
14
{: .no_toc }
15
+
{: .fs-9 }
13
16
14
-
{: .fs-6 }
15
-
Jinja2C++ is a modern C++ implementation of the[Python Jinja2 template engine](http://jinja.pocoo.org/docs/2.10/). Originally, itwas inspired by[Jinja2CppLight](https://github.com/hughperkins/Jinja2CppLight) library and now Jinja2C++ brings support for mostly all Jinja2 templates engine features into C++ world.
17
+
[Jinja2C++](https://github.com/jinja2cpp/Jinja2Cpp) is a modern C++ implementation of the Python's[Jinja2](https://jinja.palletsprojects.com/en/3.0.x/) template engine.
18
+
This projectwas inspired by[Jinja2CppLight](https://github.com/hughperkins/Jinja2CppLight) library.
- Partial support for both narrow- and wide-character strings both for templates and parameters.
26
-
- Built-in reflection for C++ types and popular json libraries ([nlohmann](https://github.com/nlohmann/json) and[rapid](https://github.com/Tencent/rapidjson)).
27
-
- Powerful full-featured Jinja2 expressions with filtering (via '\|' operator) and 'if'-expressions.
28
-
- Control flow statements ('set', 'filter', 'for', 'if', 'do', 'with').
- Partial support for both narrow- and wide-character strings both for templates and parameters;
31
+
- Built-in reflection for C++ types and popular json libraries ([nlohmann](https://github.com/nlohmann/json) and[rapid](https://github.com/Tencent/rapidjson));
32
+
- Powerful full-featured Jinja2 expressions with filtering (via '\|' operator) and 'if'-expressions;
33
+
- Control flow statements ('set', 'filter', 'for', 'if', 'do', 'with');
34
+
- Templates extension ('extends', 'block');
35
+
- Templates reuse ('include', 'import', 'from');
36
+
- Macros ('macro', 'call');
37
+
- Rich error reporting;
33
38
- Shared template enironment with templates cache support.
34
39
35
40
[View it on GitHub](https://github.com/jinja2cpp/Jinja2Cpp){: .btn .btn-primary .fs-5 .mb-4 .mb-md-0 .mr-2 }[View it on Conan](https://bintray.com/conan/conan-center/jinja2cpp%3A_){: .btn .fs-5 .mb-4 .mb-md-0 }
36
41
42
+
---
43
+
37
44
##How to get Jinja2C++
38
45
{: .no_toc }
39
46
40
47
The simplest way: to get the latest conan.io package:[