pantor
de5e742654
make environment config protected members, resolves #285
2024-10-05 09:49:19 +02:00
pantor
ee8999c127
fix test include directory, resolves #276
2024-10-05 09:46:42 +02:00
pantor
629efa42e2
add macos 14 test
2024-10-05 09:42:28 +02:00
Matheus Werny
92994bec0a
clang-tidy applied and CMake installation of the single header added ( #287 )
...
* Fixed headers and linter marks applied
Headers were wrong.
Applied some linter suggestions. There are still many left.
* CMake adjusted for single header
CMake can now install the single header.
Removed an unneeded header.
---------
Co-authored-by: Berscheid <1885260+pantor@users.noreply.github.com >
2024-10-05 09:36:11 +02:00
pantor
1281271fda
update third party dependencies
2024-10-05 09:27:35 +02:00
pantor
e69b15064f
modernize ci
2024-10-05 09:17:10 +02:00
bert hubert
807620c80c
Add HTML autoescape ( #292 )
...
* add and document set_html_autoescape
* add render_to to Environment that accepts a string (and turns it into a Template)
* code style, update single include
* update ci
* revert macos-14 test
---------
Co-authored-by: pantor <lars.berscheid@online.de >
2024-10-05 09:08:46 +02:00
ascii
c360b19855
Add capitalize function ( #282 )
...
* Add capitalize function
* Remove msvc warning
2024-09-19 06:03:33 -07:00
Anthony
0066e6049e
Fix not rendering uint64_t values greater than the int64_t max value ( #278 )
...
* Fix not properly rendering uint64_t values greater than the int64_t max value
* Move render check to variables subcase
2023-11-07 06:42:27 -05:00
pantor
67d6fea2b7
Merge branch 'master' of github.com:pantor/inja
2023-09-03 16:38:47 +02:00
pantor
3e0c30f27f
static load file
2023-09-03 16:26:32 +02:00
Bren
fe58260752
Set CMake policy 0077 for easy inclusion from other CMake prjs ( #262 )
...
Co-authored-by: Bren de Hartog <bren.github@dehartog.name >
2023-09-03 16:11:47 +02:00
Berscheid
fe6d4f4c89
Fix Codacy badge
2023-07-24 08:35:30 +02:00
pantor
c2ad85db6d
fix msvc conversion warning
2023-05-16 07:37:17 +02:00
pantor
6b7b9f1604
ci update envs
2023-05-16 07:31:09 +02:00
pantor
c0f7d91723
fix extra ';' in single include
2023-05-14 12:11:51 +02:00
Yaraslau
f7160c405a
fix extra ‘;’ after in-class function definition ( #268 )
2023-05-14 12:10:42 +02:00
Martin Hierholzer
9e92a7c0fa
fix: cmake does not find embedded json ( #266 )
2023-04-06 09:16:29 +02:00
Mai-Lapyst
3741c73ba7
Fixes the json exception when using "\\" inside a string; closes #257 ( #264 )
2023-03-19 20:00:22 +01:00
alex-kuzza-aaa
8e22d8e668
c++17 support starts from gcc8 ( #260 )
...
Co-authored-by: Alex Smith <alx.kuzza@gmail.com >
2023-02-07 19:59:02 +01:00
pantor
1709ee170e
build documentation from latest release
2023-01-29 14:00:11 +01:00
pantor
02ffca28a5
modernize github pages deployment
2023-01-29 13:55:16 +01:00
pantor
7487559dd5
ci fix docs upload
2023-01-29 13:43:04 +01:00
pantor
2671c9bbed
modernize ci and docs
2023-01-29 13:41:04 +01:00
pantor
aeb43b44f1
update copyright year
2023-01-29 13:24:00 +01:00
pantor
b2276440be
bump to v3.4.0
v3.4.0
2023-01-29 13:10:03 +01:00
pantor
ea47bb14dc
improve meson build
2023-01-28 13:15:58 +01:00
Benedikt Bastin
44b23f2ce7
fix: Add option to disable tests and benchmarks with Meson ( #216 )
...
Co-authored-by: Benedikt Bastin <benedikt@benedikt-bastin.de >
2023-01-28 13:06:50 +01:00
Kubo Takehiro
d462b9f829
Fix issue 246 ( #247 )
...
* Add `parse_expression` with one argument in preparation to fix #246 .
* Fix issue #246 : `func(n1 + n2, n3)` runs as if `func(n1, n2 + n3)`
* Simplify parser for an expression enclosed by parentheses.
2022-12-04 11:28:04 +01:00
pantor
edc17798b3
Merge branch 'master' of github.com:pantor/inja
2022-07-10 13:46:36 +02:00
pantor
9f923b3677
add check for too few arguments in operator parser
2022-07-10 13:46:33 +02:00
Mihai Stan
17a59c0b78
fix warnings with VS2019, W4, c++20 ( #230 )
...
* fix warnings with VS2019, W4, c++20
* update single include
Co-authored-by: Berscheid <1885260+pantor@users.noreply.github.com >
Co-authored-by: pantor <lars.berscheid@online.de >
2022-06-20 12:06:28 +02:00
pantor
72f90122a2
fix tests
2022-06-20 11:44:50 +02:00
pantor
771e47f6da
fix search directory for string templates
2022-06-20 11:43:45 +02:00
pantor
4526fb4007
remove const from static cast
2022-06-20 11:02:47 +02:00
pantor
a9ce204b3b
use json data types in renderer
2022-06-20 10:57:20 +02:00
pantor
59933e5e6f
update dependencies
2022-06-20 10:39:56 +02:00
Berscheid
8ce4d8efaf
Update CI ( #244 )
...
* test new ci
* update ci
2022-06-20 10:29:42 +02:00
pantor
b2874f7816
fix ci
2022-05-30 07:34:22 +02:00
pantor
defee6fdf8
make environment paths protected
2022-05-29 15:42:32 +02:00
Alexander Kraus
4566a20f9a
Fixed exports for submodule builds with external nlohmann json parser. ( #237 )
2022-05-17 08:21:29 +02:00
pantor
88bd611257
fix tests
2021-11-17 12:15:35 +01:00
pantor
b2c0dddafe
improve lexing of numbers
2021-11-17 12:13:22 +01:00
pantor
b41524f129
fix loop variables
2021-11-17 11:14:46 +01:00
pantor
79ded2ecf1
patch json throw in nlohmann/json
2021-11-17 10:48:14 +01:00
pantor
80005c19b5
disable implicit conversions in test
2021-11-17 10:42:45 +01:00
pantor
ab6d006443
works with JSON_NO_IO
2021-11-17 10:39:53 +01:00
pantor
dc3451173f
revert to nlohmann json 3.9.1
2021-11-17 10:39:30 +01:00
pantor
54a2606885
bump to nlohmann/json 3.10.4
2021-11-17 10:11:20 +01:00
pantor
eb04bfc7d3
clang-format
2021-11-12 08:35:56 +01:00