Commit Graph

114 Commits

Author SHA1 Message Date
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
pantor
b46d92a793 remove coverage 2019-09-10 15:38:47 +02:00
pantor
d25937a85b add test and readme 2019-09-08 16:19:50 +02:00
pantor
57ac9b9372 update readme 2019-07-28 14:23:50 +02:00
pantor
d5532ac26a add at function 2019-04-07 16:15:12 +02:00
pantor
67699c2549 fix wrong render_file in readme 2019-04-07 13:32:59 +02:00
Paul Fultz II
4c0ee3a46c Improve support for installing with cget (#88)
* Improve support for installing with cget

* add specific version, clean cmake

* fix version to "v2.1.0"
2019-02-16 12:39:59 +01:00
pantor
5553ee7526 add older compilers 2019-01-21 21:42:52 +01:00
pantor
41857c2c83 add line break 2019-01-20 09:51:53 +01:00
pantor
87ab78acf0 add link to documentation 2019-01-20 09:49:52 +01:00
Tim
0bff74666e Change std::stringstream& to std::ostream& in render_to() (#76)
* Change std::stringstream& to std::ostream& in render_to()

Fixes #75

* Expose render_to

* Update readme with example of render_to
2019-01-10 14:39:12 +01:00
pantor
210848bb98 Readme fix write_with_json_file 2019-01-08 17:09:11 +01:00
Lars Berscheid
a9d4ca9a4e fix string view reference movement in bytecode 2019-01-07 16:41:16 +01:00
pantor
699c207c8c Inja v2 (#67)
* inja2

* header only

* reduce dependencies

* code cleaning

* c++17

* use stdc++

* code cleaning

* infrastructure

* header only

* add infrastructure

* fix tests

* use minimum clang 6

* code cleaning, polyfill for c++11

* fix some file tests

* fix readme

* update appveyor

* fix polyfill and ci

* fix polyfill

* fix ci?

* test msvc __cplusplus

* add doxygen

* activate all tests

* code cleaning

* add coveralls, set default to dot notation

* add html test

* add doxygen comments

* test single_include file

* change build folder in appveyor

* correct make arguments in appveyor

* fix appveyor arguments
2018-12-23 16:13:15 +01:00
pantor
6bae3a7d5a update readme 2018-12-14 18:04:39 +01:00
pantor
b66f2d23aa add type checks: isString, ... 2018-11-11 14:34:35 +01:00
pantor
bac1771d42 clearer integration 2018-11-11 14:10:03 +01:00
pantor
0898b1c302 use loop object for loop variables 2018-05-22 22:52:55 +02:00
pantor
71cfb21e61 include nlohmann/json in inja directly 2018-05-15 20:23:09 +02:00