Matthias Klumpp
18ad33abe2
meson: Add pkg-config file ( #310 )
2025-09-19 07:47:55 -05:00
Felix Maier
2d6b382e2a
add replace function ( #306 )
...
Co-authored-by: Felix Maier <fm41@mailbox.org >
2025-09-06 16:38:04 +02:00
Gleb Popov
593ff96024
/update_single_include.sh: Use portable shebang ( #308 )
2025-08-18 10:21:08 +02:00
pantor
0bb32ae85b
bump windows CI to 2022/2025
2025-08-18 10:04:31 +02:00
Andrew Kane
2d1f0d09e6
Make htmlescape function public ( #300 )
...
Co-authored-by: Berscheid <1885260+pantor@users.noreply.github.com >
2025-04-13 11:31:15 +02:00
Huang Rui
ca53920be2
Initialize missing fields in Lexer constructor ( #304 )
...
* Initialize missing fields in Lexer constructor
- Add tok_start and pos initialization to Lexer constructor
- Fix clang-tidy uninitialized fields warning
Signed-off-by: Huang Rui <vowstar@gmail.com >
* Fix argument type mismatch for load_file and load_json methods
- Use .string() method for path objects in benchmark file loading
- Apply same path conversion in test cases for consistency
Signed-off-by: Huang Rui <vowstar@gmail.com >
* Fix and cleanup mismatch error in windows test case
- Use .string() method for path objects in benchmark file loading
- Fix test case failure introduced in 65aa8a669d
Signed-off-by: Huang Rui <vowstar@gmail.com >
---------
Signed-off-by: Huang Rui <vowstar@gmail.com >
2025-04-13 11:16:44 +02:00
pantor
65aa8a669d
move tests to std::filesystem::path
2025-03-31 23:22:36 +02:00
pantor
804823dbca
filesystem::path fixes
2025-03-31 22:54:04 +02:00
pantor
9b6587135c
move to std::filesystem
2025-03-31 22:45:01 +02:00
pantor
ad22893c2c
variable_counter to size_t
2025-03-31 22:31:39 +02:00
Florian Sattler
34514c2658
Prevent local stack memory leakage when parsing ( #302 )
...
We need to resets current_block to a nullptr after parsing the template
in `parse_into`, otherwise, current_block will refer to local stack
space after we return from Parser::parse.
2025-03-18 20:20:34 -05:00
Florian Sattler
808c3711d0
Removes unnecessary template content copy ( #301 )
...
By taking the template content by value and moving into the local
member, we can prevent and additional copy of 'content' when creating a
Template.
2025-03-18 20:20:02 -05:00
pantor
9416142a50
simplify ci runners
2025-03-18 20:14:48 -05:00
pantor
6280ea8808
update ci runner versions
2025-03-17 21:31:48 -05:00
Vladislav Navrocky
384a6bef3f
Fix: Remove circular dependencies in headers ( #295 )
...
* Remove circular dependencies in headers
* Fix unit test includes and test data directory location
2025-02-11 09:03:42 +01:00
pantor
17ba53cb9e
add clang tidy
2024-10-05 16:47:03 +02:00
pantor
fddbfce5a3
fix benchmark includes, resolves #286
2024-10-05 10:03:29 +02:00
pantor
8695d7525f
include building benchmark in test option
2024-10-05 10:01:11 +02:00
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