Commit Graph

53 Commits

Author SHA1 Message Date
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
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
73a40cf1b1 fix mac os x callback without parent bug 2018-03-20 16:36:11 +01:00
pantor
cfa0e5cbfe fix old xcode tests 2018-03-19 18:34:35 +01:00
pantor
e38df0931f Fix line statements 2018-03-19 12:20:12 +01:00
pantor
561f8cf59e Catch some errors for conditional parsing 2018-03-19 11:43:19 +01:00
pantor
1766793fd5 Allow index in nested loops 2018-03-19 11:09:23 +01:00
pantor
776af96b0b Use callbacks without parameters either with or without parenthesis 2018-03-19 10:46:49 +01:00
pantor
b68f745866 added is_last == false test 2018-03-19 10:37:55 +01:00
pantor
cd43573c0e add not is_last test 2018-03-19 10:33:37 +01:00
pantor
44f7461a8a allow empty lists for loops 2018-03-19 10:30:26 +01:00
pantor
98506f355a add meson build for testing 2018-03-07 15:24:58 +01:00
pantor
904074c9a8 fix test for loop error message 2018-03-01 14:47:20 +01:00
pantor
6f7fad983d add float and int string conversion 2018-03-01 11:29:56 +01:00
pantor
097ebf1f90 fix search_closed_on_level if nothing was found 2018-02-28 12:42:39 +01:00
pantor
f7e0fa1c68 fix throw test 2018-02-24 17:45:29 +01:00
pantor
7e32e8bcfe use central throw function 2018-02-24 14:50:38 +01:00
pantor
2ae161b4bd make renderer private in env 2018-02-23 23:47:09 +01:00
pantor
c29fd9189d allow callbacks with the same name but different number of arguments 2018-02-23 20:07:04 +01:00
pantor
221b59d364 use at for json pointer, fix errors 2018-02-23 14:51:48 +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
98aed90e02 argument default json 2018-02-18 18:59:24 +01:00
pantor
f931a95800 use get_argument function in callbacks 2018-02-18 18:56:35 +01:00
pantor
b57a747ef2 add default function 2018-02-18 11:50:14 +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
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
158348ff3e temp fix some unit test for mvsc 2017-12-02 15:48:25 +01:00
pantor
d8196aea39 temp fix some unit test for mvsc 2017-12-02 15:16:41 +01:00
pantor
35acf7df37 temp fix some unit test for mvsc 2017-12-02 15:03:48 +01:00
pantor
d81d828bfb temp fix some unit test for mvsc 2017-12-02 14:46:50 +01:00
pantor
0d23de8147 temp fix some unit test for mvsc 2017-12-02 14:29:06 +01:00
pantor
3db6f1744c temp fix some unit test for mvsc 2017-12-02 14:13:21 +01:00
pantor
3accc9b7fa temp fix some unit test for mvsc 2017-12-02 12:58:46 +01:00
pantor
722e6b3a52 temp fix some unit test for mvsc 2017-12-02 12:33:14 +01:00
pantor
4a2914654a temp remove some unit test 2017-12-02 12:17:02 +01:00
pantor
a3d570b7c4 match multiple regexes with types 2017-12-01 16:21:18 +01:00
pantor
2c96b3bdf5 templates, split parser and renderer, c++ class parser 2017-11-21 21:19:52 +01:00
pantor
27140612b3 split parser and renderer 2017-11-19 21:02:04 +01:00
lbersch
ba60c91e4d Merge branch 'hunter' into master 2017-11-16 12:57:56 +01:00
Jorrit Wronski
ffcc0229ee Include json headers with rpefix 2017-11-15 23:10:12 +01:00
pantor
1eb85fa1a8 fix round() function, tests for syntax change, smaller readme fixes 2017-11-15 22:07:55 +01:00
pantor
dd65af4457 crop image, more enum classes 2017-08-20 13:15:57 +02:00
pantor
c06da24f4d code cleaning 2017-08-18 15:38:32 +02:00
pantor
fbdb215880 fix and test 2017-08-15 20:22:53 +02:00