mirror of
https://github.com/pantor/inja.git
synced 2026-02-22 19:36:25 +00:00
* Fix for issue #82 - Nested loops I made the following changes in renderer.hpp - Removed the member LoopLevel::it - it was not being used and was causing issues. - Added LoopLevel::loop_type with a matching enum class to mark the loop as looping on either a Map or an Array. This was to replace the hard to understand test for key_name.empty(). - Modified update_loop_data to get the correct data for map type loops when copying in outer loop control data. - Modified update_loop_data to only copy in the outer loop data during StartLoop, it does not need to be done at EndLoop and can be expensive since it can copy a large part of the json tree. All the tests pass and the test cases from the issue also now work. Both GCC and Clang will compile and run the tests with no issue. No issue is seen with address_sanitizer in either compiler. * Remove forgotten debugging code.