inja icon indicating copy to clipboard operation
inja copied to clipboard

A Template Engine for Modern C++

Results 50 inja issues
Sort by recently updated
recently updated
newest added

I've trying to set a string which concat integer variables with strings and other string variables, like this example below: `page.json.coupons` is an array of objecsts ``` {% set page.config.description=length(page.json.coupons)...

```bash cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug cmake --build build -j2 ``` output the ```bash [ 33%] Building CXX object CMakeFiles/inja_test.dir/test/test.cpp.o [ 33%] Building CXX object CMakeFiles/single_inja_test.dir/test/test.cpp.o /Users/david/cpp/inja/test/test.cpp:5:10: fatal error:...

Given the following template: ``` { "some_key": {{ A_JSON_OBJECT_VARIABLE }} } ``` The variable A_JSON_OBJECT_VARIABLE is defined as follows: ```c++ nl::json variables = nl::json{ {"A_JSON_OBJECT_VARIABLE", { {"key1", "value1"}, {"key2", "value2"}...

[JSON Pointer syntax](https://datatracker.ietf.org/doc/html/rfc6901) support was removed in v3.0. I haven't found any issues or PRs referencing _why_ this option was removed. Was it to simplify the code during the AST...

``` LIMIT {{ default(page.PageIndex, 0) * default(page.PageSize, 20) }}, {{ default(page.PageSize, 20) }}) ``` This works well, getting `LIMIT 0, 20` ``` LIMIT {{ default(page.PageIndex, 0) * min([default(page.PageSize, 20), 200])...

i wan to use include to reference a file, but the dir may changed, so i wan to use like this: {% include "{{env.path}}/some_values.txt" %} but it doesn't work ,throw...

How much effort would it be to modify `inja` to support another JSON library such as `boost::json`? Is this doable with minimal efforts or would this be a major undertaking?

enhancement

The commit messages already describe it. The first commit does minor fixes suggested by clang-tidy which includes changing the headers. There are still many recommendation left but would require too...

0066e6049e486fa4bbc52c062a22efb594f1cf05 Thank you for your awesome library, it works very well. I have been trying to process an ordered json that I have generated with `nlohmann::ordered_json`. Therefore, I have defined...