Vladislav Nawrocki
ea845eee91
Add pipe syntax support for function calls like in Jinja2, resolves #294 ( #296 )
2025-10-18 05:35:57 -07:00
Felix Maier
2d6b382e2a
add replace function ( #306 )
...
Co-authored-by: Felix Maier <fm41@mailbox.org >
2025-09-06 16:38:04 +02:00
pantor
9b6587135c
move to std::filesystem
2025-03-31 22:45:01 +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
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
Berscheid
fe6d4f4c89
Fix Codacy badge
2023-07-24 08:35:30 +02: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
2671c9bbed
modernize ci and docs
2023-01-29 13:41:04 +01:00
pantor
b41524f129
fix loop variables
2021-11-17 11:14:46 +01:00
pantor
d38c07ec5b
clang 5 minimum
2021-11-10 12:35:03 +01:00
pantor
2239e231bc
remove string view polyfill
2021-11-10 12:14:54 +01:00
pantor
fb55f2e5fe
update minimum compiler
2021-11-10 12:03:54 +01:00
pantor
635e1fb183
change readme example
2021-09-07 10:08:28 +02:00
pantor
d038c53388
set .cpp in readme
2021-09-07 10:01:09 +02:00
pantor
cf71b54151
add include callback
2021-09-07 10:00:33 +02:00
pantor
9b9dd96a46
introduce INJA_DATA_TYPE
2021-09-06 09:15:48 +02:00
Wim Leflere
91c93bfb77
add join function ( #204 )
...
* add join function
* fix formatting to match single include
* add join test
* add join to documentation
* fix MSVC warning: signed/unsigned mismatch
Co-authored-by: Wim Leflere <wleflere@cochlear.com >
2021-06-17 20:54:22 +02:00
pantor
4e909475ea
at function for objects
2021-06-09 22:26:07 +02:00
pantor
b473873853
compactify assignments readme
2021-06-09 21:41:00 +02:00
Bryce Adelstein Lelbach aka wash
798a0b92b1
Add support for setting subobjects via JSON pointer in set statements. ( #202 )
...
E.g. `{% set x.y = 1 %}` sets the `y` member of `x` to 1.
2021-06-09 21:39:16 +02:00
pantor
95af782ca2
Add Child Inheritance Feature ( #198 )
...
* add block and extend feature
* constify, code cleaning
* update single include
* add html language to readme
* clean tests
* constantify, update year
2021-05-25 10:18:21 +02:00
pantor
b14f8a1e3a
add ci for gcc 10, 11
2021-05-19 20:16:00 +02:00
Jesse Mapel
8f8487c0a8
Added conda-forge installation instructions ( #187 )
2021-02-03 08:12:36 +01:00
pantor
9d59943220
add INJA_NOEXCEPTION
2021-01-16 18:06:43 +01:00
pantor
3cc82e934e
Improve conditions examples in readme
2021-01-01 21:31:43 +01:00
pantor
15b3e16bd5
use svg icon
2020-12-18 22:48:43 +01:00
pantor
dda31f44bb
Add homebrew
2020-09-28 18:06:23 +02:00
pantor
1590bcebef
test and doc whitespace control for expressions
2020-08-12 19:57:20 +02:00
pantor
7ee2a06872
better readme
2020-08-10 19:42:39 +02:00
pantor
5f9d429a6a
add void callbacks
2020-08-10 19:38:12 +02:00
pantor
73c04e6995
fix codacy issues II
2020-08-08 13:41:16 +02:00
pantor
e29a04cbca
Merge branch 'master' of https://github.com/pantor/inja
2020-08-08 13:36:28 +02:00
pantor
52a73410de
fix codacy issues
2020-08-08 13:36:26 +02:00
pantor
7c32a8dd01
Update README.md
2020-08-08 12:20:48 +02:00
pantor
98bc076313
fix readme semi
2020-08-08 11:26:18 +02:00
pantor
dff720aa57
Update README.md
2020-08-07 17:11:46 +02:00
pantor
524edeb3c6
update readme
2020-08-05 19:45:48 +02:00
pantor
889da4da4f
add set statements
2020-08-03 21:29:05 +02:00
pantor
aac0f43aed
move to gcc 4.9
2020-07-15 20:56:38 +02:00
pantor
5938bc2301
add tests for gcc 4.8, bump to 3.0
2020-07-15 18:34:47 +02:00
pantor
f31378edaa
slight changes
2020-07-13 21:17:59 +02:00
pantor
6eb71dd3ea
Rewarite core with an AST for statements and RPN for expressions ( #149 )
...
* test
* improve ast
* add if statement
* shunting-yard start
* renderer as node visitor
* improve ast
* improve ast further
* first functions
* improve ast v3
* improve ast v4
* fix parser error location
* nested ifs
* fix comma, activate more tests
* fix line statements
* fix some more tests
* fix callbacks without arguments
* add json literal array and object
* use switch in expression
* fix default function
* fix loop data
* improved tests and benchmark
* fix minus numbers
* improve all
* fix warnings, optimizations
* fix callbacks argument order
* dont move loop parent
* a few more test
* fix clang-3
* fix pointers
* clean
* update single include
2020-07-13 15:20:04 +02:00
Lars Berscheid
db4356b345
add tests for get source location function
2020-06-30 09:25:02 +02:00
pantor
c4d99c9455
add finegrained whitespace control
2020-06-29 23:12:12 +02:00
pantor
eb15b472ab
update readme
2020-06-27 18:11:48 +02:00
pantor
dadbb856cd
add config throw_missing_includes, search_in_files
2020-06-27 17:47:58 +02:00
pantor
10b8ccccbc
restructure third party modules
2020-06-25 22:57:37 +02:00
pantor
025846d75e
add else if and else to readme
2020-06-15 20:58:29 +02:00