Commit Graph

132 Commits

Author SHA1 Message Date
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
pantor
8f2fac5d4d update version, code style 2020-04-10 15:58:05 +02:00
pantor
c2c95a4871 fix readme for trim and lstrip 2020-04-10 15:49:16 +02:00
pantor
7101c77c41 Merge branch 'master' of https://github.com/pantor/inja 2020-04-10 15:48:45 +02:00
pantor
d717b6ede3 fix blocks in readme 2020-04-10 15:48:43 +02:00
pantor
ef3846ff2b Update README.md 2020-04-10 15:42:49 +02:00
pantor
7697359c32 update compilers in readme 2020-03-21 15:34:11 +01:00
pantor
bbb1f3a1da fix ci 2020-03-21 15:21:42 +01:00
pantor
3f624db81a badges to github action 2020-03-18 11:49:02 +01:00
pantor
225a468032 center badges in readme 2020-03-18 08:47:51 +01:00
Tom
1b2212cc69 Fix error in example for included templates (#122)
When using templates from an environment, `inja::env::render`
must be used.

Closes #121
2019-11-09 20:41:32 +08:00