Commit Graph

218 Commits

Author SHA1 Message Date
pantor 98d6854e1f update travis.yml 2019-01-19 17:26:56 +01:00
pantor cab491ae2b Merge branch 'master' of https://github.com/pantor/inja 2019-01-19 17:17:46 +01:00
pantor 4df7f9dd35 update travis 2019-01-19 17:17:14 +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
v2.0.1
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 02b8355081 update single include file 2019-01-07 16:46:25 +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
v2.0.0
2018-12-23 16:13:15 +01:00
pantor d90f93fda0 optional benchmark 2018-12-14 19:31:40 +01:00
pantor 6bae3a7d5a update readme 2018-12-14 18:04:39 +01:00
pantor 595076ebec split dev files and amalgamate into a single header 2018-12-14 18:03:45 +01:00
pantor e44c2372e1 code cleaning 2018-11-23 18:03:51 +01:00
pantor 0f1f57a8a3 fix cmake build for benchmark 2018-11-23 17:57:05 +01:00
pantor 7dbdd44b0e add benchmark, add hayai 2018-11-21 21:29:36 +01:00
pantor 5021b220b0 update to json 3.4.0 2018-11-11 14:38:00 +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 84faa3a31d allow more flexible whitespaces 2018-11-11 14:09:55 +01:00
pantor d6cfbd0f07 undo cmake version 2018-08-29 19:40:50 +02:00
pantor 65cc971e21 Merge branch 'master' of https://github.com/pantor/inja 2018-08-29 19:31:55 +02:00
pantor a496ec9585 update to json 3.2 and catch 2.3, clean cmake 2018-08-29 19:31:37 +02:00
pantor 6afdf700cb Fix division by zero warning (#61) 2018-08-09 12:41:56 +02:00
Tian Jin 4eaeb2b182 Update CMakeLists.txt (#59) 2018-07-27 13:35:47 +02:00
Tian Jin a06207b64b Update CMakeLists.txt (#58) 2018-07-25 07:44:54 +02:00
Erik Partridge 360228eabf Fix the std::transform bug (#56)
https://stackoverflow.com/questions/16792456/no-matching-function-for-call-to-transform

This is a fix for using toupper and tolower with std::transform
2018-06-26 09:40:12 +02:00
Maxime Pinard 32ca238c23 Made unmodified variables const (#55)
* Removed intermediate variable

* Made some unmodified variables const
2018-05-23 07:45:05 +02:00
pantor 0898b1c302 use loop object for loop variables 2018-05-22 22:52:55 +02:00
Maxime Pinard 1dc3267c02 Typo corrections (#51) 2018-05-22 22:29:51 +02:00
pantor 4ccc2e62ec Merge pull request #48 from pantor/include-json-in-inja 2018-05-15 21:55:14 +02:00
pantor 3c8823a3fa Merge branch 'master' into in-memory-includes 2018-05-15 20:25:58 +02:00
pantor 71cfb21e61 include nlohmann/json in inja directly 2018-05-15 20:23:09 +02:00
pantor 0029a130ab clean meson file 2018-05-15 20:03:15 +02:00
pantor 394610b002 order includes 2018-05-15 19:52:41 +02:00
pantor c8d3d720c8 add in-memory includes via include_template (#47) 2018-05-14 20:48:28 +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 138e0da339 add STL containers support for Templates (issue #42) 2018-04-02 15:49:59 +02:00
pantor 8d21a9dae9 multiple render optimizations 2018-04-02 15:43:32 +02:00
pantor e339da7e2b Use references 2018-03-20 17:00:33 +01: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