Commit Graph

70 Commits

Author SHA1 Message Date
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
pantor cb18e2cd0c add in-memory includes via include_template 2018-05-14 20:21:29 +02:00
pantor 95e3712aaf add vcpkg integration 2018-05-06 09:03:46 +02:00
pantor 29d0ddcf09 Add Conan integration to readme 2018-04-18 16:48:45 +02:00
Samuel Leweke 1cb6b15cca Add exists() function that checks existence of key (#38)
* Add exists() function that checks existence of key

Adds an exists() function that checks whether a given key exists in the
data. If only one argument is provided to exists(), the global data is
queried for the item. If two arguments are given, the first argument
specifies the object to query for the key given as second argument.

Also adds corresponding unit tests and updates README for
documentation.

* Split exists() into exists() and existsIn()

Splits the exists() function, which previously took both one or two
arguments, into an exists() function accepting one and an existsIn()
function accepting two arguments.
2018-04-02 15:54:00 +02:00
pantor 6f7fad983d add float and int string conversion 2018-03-01 11:29:56 +01:00
pantor 07b49af6a4 add readme plural line statements 2018-02-28 12:01:14 +01:00
lbersch e90e849a5e Merge branch 'master' into patch-2 2018-02-28 11:35:51 +01:00
Ludek Vodicka 08b1245f5b Fixed set_* methods 2018-02-26 13:04:36 +01:00
Ludek Vodicka aafd86b80c Fixed typo
set_line_statements vs set_line_statement
2018-02-26 12:43:51 +01:00
pantor c29fd9189d allow callbacks with the same name but different number of arguments 2018-02-23 20:07:04 +01:00
pantor c5ea89c87e correct write template 2018-02-23 15:45:34 +01:00
pantor 4d0ceda62d add meson build interface to readme 2018-02-23 12:49:47 +01:00
pantor 74ad4281ed fix render file/template bug 2018-02-20 10:20:26 +01:00
pantor a6f9911d3a try clang 5 2018-02-19 23:16:56 +01:00
pantor 44da70da1a fix data in readme doc 2018-02-19 22:45:00 +01:00
pantor 0e1d1d5084 badge appveyor master branch 2018-02-19 11:22:25 +01:00
pantor fd76144caa remove empty line in readme 2018-02-18 20:30:26 +01:00
pantor 9f97c9add1 add sort function 2018-02-18 19:41:56 +01:00
pantor 37d16d3c3a min, max functions 2018-02-18 19:34:16 +01:00
pantor c886c89131 add map loops 2018-02-18 19:24:49 +01:00
pantor f931a95800 use get_argument function in callbacks 2018-02-18 18:56:35 +01:00
pantor 693bf63493 Make inja lowerscore in text 2018-02-18 18:47:29 +01:00
pantor 7cd35db5f5 fix default function escaping in readme 2018-02-18 13:24:19 +01:00
pantor e0ccb5a62f fix semicolons in readme 2018-02-18 13:13:13 +01:00
pantor b57a747ef2 add default function 2018-02-18 11:50:14 +01:00
pantor be2e8fca78 fix readme code 2018-02-17 23:48:16 +01:00
pantor e06b7f2353 mention callbacks in first paragraph 2018-02-17 16:05:50 +01:00
pantor 788d94bba5 remove env from double-greet example 2018-02-17 16:02:35 +01:00
pantor 03d3414968 Merge branch 'master' into callbacks 2018-02-17 15:53:57 +01:00
pantor f2315cbec9 use underscore notation for variables and functions 2018-02-17 15:50:07 +01:00
pantor d748979934 readme update 2018-02-17 14:10:51 +01:00
pantor ee2451edae add callbacks 2018-02-17 14:06:38 +01:00
pantor 8af2762829 add first and last function 2018-02-17 12:05:20 +01:00
pantor 2bddb4619f clear up include template 2018-02-16 17:31:11 +01:00
pantor bec63cd82a update deps to json 3.1 and catch 2.1 2018-02-14 10:13:57 +01:00
lbersch c283916589 Fix capital World in readme 2018-02-13 13:50:18 +01:00
pantor 3ca727e35d fix write file bug and readme 2018-01-28 12:47:56 +01:00
pantor 4a2914654a temp remove some unit test 2017-12-02 12:17:02 +01:00
pantor 2c96b3bdf5 templates, split parser and renderer, c++ class parser 2017-11-21 21:19:52 +01:00
lbersch 09238ec1d7 Fix json link, add releases badge 2017-11-18 14:28:04 +01:00
lbersch 3aa696203a Add Hunter in integration readme 2017-11-17 17:53:56 +01:00
pantor 93ec40b3fb add divisibleBy, odd, even functions, add ElementNotation for dot or pointer notation 2017-11-16 17:39:18 +01:00
pantor 1eb85fa1a8 fix round() function, tests for syntax change, smaller readme fixes 2017-11-15 22:07:55 +01:00
pantor a665f24ef7 add round function, updated readme 2017-08-21 17:16:29 +02:00