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
Copy file name to clipboardExpand all lines: README.md
+61-17
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ Hello World!!!
90
90
91
91
That's all!
92
92
93
-
More detailed examples and features description can be found in the documentation: [https://jinja2cpp.dev/docs/usage](https://jinja2cpp.github.io/docs/usage)
93
+
More detailed examples and features description can be found in the documentation: [https://jinja2cpp.github.io/docs/usage](https://jinja2cpp.github.io/docs/usage)
94
94
95
95
## Current Jinja2 support
96
96
Currently, Jinja2C++ supports the limited number of Jinja2 features. By the way, Jinja2C++ is planned to be a fully [jinja2 specification](http://jinja.pocoo.org/docs/2.10/templates/)-conformant. The current support is limited to:
@@ -111,7 +111,7 @@ Currently, Jinja2C++ supports the limited number of Jinja2 features. By the way,
111
111
- recursive loops
112
112
- space control and 'raw'/'endraw' blocks
113
113
114
-
Full information about Jinja2 specification support and compatibility table can be found here: [https://jinja2cpp.dev/docs/j2_compatibility.html](https://jinja2cpp.github.io/docs/j2_compatibility.html).
114
+
Full information about Jinja2 specification support and compatibility table can be found here: [https://jinja2cpp.github.io/docs/j2_compatibility.html](https://jinja2cpp.github.io/docs/j2_compatibility.html).
115
115
116
116
## Supported compilers
117
117
Compilation of Jinja2C++ tested on the following compilers (with C++14 and C++17 enabled features):
@@ -134,10 +134,10 @@ Compilation of Jinja2C++ tested on the following compilers (with C++14 and C++17
@@ -182,24 +182,37 @@ In this case, Jinja2C++ will be built with internally-shipped dependencies and i
182
182
Jinja2C++ can be used as conan.io package. In this case, you should do the following steps:
183
183
184
184
1. Install conan.io according to the documentation ( https://docs.conan.io/en/latest/installation.html )
185
-
2. Add a reference to Jinja2C++ package (`jinja2cpp/1.1.0`) to your conanfile.txt, conanfile.py or CMakeLists.txt. For instance, with the usage of `conan-cmake` integration it could be written this way:
185
+
2. Add a reference to Jinja2C++ package (`jinja2cpp/1.2.1`) to your conanfile.txt, conanfile.py or CMakeLists.txt. For instance, with the usage of `conan-cmake` integration it could be written this way:
186
186
187
187
```cmake
188
-
include (../../cmake/conan.cmake)
189
-
if (NOT MSVC)
190
-
set (CONAN_SETTINGS SETTINGS compiler.libcxx=libstdc++11)
@@ -229,6 +242,8 @@ You can define (via -D command-line CMake option) the following build flags:
229
242
Jinja2C++ tries to use standard versions of `std::variant`, `std::string_view` and `std::optional` if possible.
230
243
231
244
## Acknowledgments
245
+
Thanks to **@flexferrum** for creating this library, for being one of the brightest minds in software engineering community. Rest in peace, friend.
246
+
232
247
Thanks to **@manu343726** for CMake scripts improvement, bug hunting, and fixing and conan.io packaging.
233
248
234
249
Thanks to **@martinmoene** for the perfectly implemented xxx-lite libraries.
@@ -240,6 +255,35 @@ Thanks to **@martinus** for the fast hash maps implementation.
240
255
241
256
## Changelog
242
257
258
+
259
+
### Version 1.3.1
260
+
261
+
#### Changes and improvements
262
+
- bump deps versions
263
+
- add new json binding - boost::json
264
+
- speedup regex parsing by switching to boost::regex(std::regex extremely slow)
265
+
- templates are now loading faster
266
+
267
+
#### Fixed bugs
268
+
- small fixes across code base
269
+
270
+
#### Breaking changes
271
+
- internal deps now used through cmake fetch_content
272
+
- default json serializer/deserializer is switched to boost::json
273
+
274
+
### Version 1.2.1
275
+
276
+
#### Changes and improvements
277
+
- bump deps versions
278
+
- support modern compilers(up to Clang 12) and standards(C++20)
279
+
- tiny code style cleanup
280
+
281
+
#### Fixed bugs
282
+
- small fixes across code base
283
+
284
+
#### Breaking changes
285
+
- internal deps point to make based boost build
286
+
243
287
### Version 1.1.0
244
288
#### Changes and improvements
245
289
-`batch` filter added
@@ -297,13 +341,13 @@ Thanks to **@martinus** for the fast hash maps implementation.
297
341
298
342
### Version 0.9.2
299
343
#### Major changes
300
-
- User-defined callables implemented. Now you can define your own callable objects, pass them as input parameters and use them inside templates as regular (global) functions, filters or testers. See details here: https://jinja2cpp.dev/docs/usage/ud_callables.html
344
+
- User-defined callables implemented. Now you can define your own callable objects, pass them as input parameters and use them inside templates as regular (global) functions, filters or testers. See details here: https://jinja2cpp.github.io/docs/usage/ud_callables.html
301
345
- Now you can define global (template environment-wide) parameters that are accessible for all templates bound to this environment.
302
346
-`include`, `import` and `from` statements implemented. Now it's possible to include other templates and use macros from other templates.
303
347
-`with` statement implemented
304
348
-`do` statement implemented
305
349
- Sample build projects for various Jinja2C++ usage variants created: https://github.com/jinja2cpp/examples-build](https://github.com/jinja2cpp/examples-build)
306
-
- Documentation site created for Jinja2C++: https://jinja2cpp.dev/
350
+
- Documentation site created for Jinja2C++: https://jinja2cpp.github.io
0 commit comments