mirror of
https://github.com/pantor/inja.git
synced 2026-03-30 21:02:51 +00:00
Uninitiated current_loop_data bug fix in render_to (#165)
* uninitiated current_loop_data bug fix in render_to * change json_loop_data to json_additional_data * forgot to update single_include
This commit is contained in:
@@ -593,6 +593,7 @@ public:
|
||||
json_input = &data;
|
||||
if (loop_data) {
|
||||
json_additional_data = *loop_data;
|
||||
current_loop_data = &json_additional_data["loop"];
|
||||
}
|
||||
|
||||
current_template->root.accept(*this);
|
||||
|
||||
@@ -3888,6 +3888,7 @@ public:
|
||||
json_input = &data;
|
||||
if (loop_data) {
|
||||
json_additional_data = *loop_data;
|
||||
current_loop_data = &json_additional_data["loop"];
|
||||
}
|
||||
|
||||
current_template->root.accept(*this);
|
||||
|
||||
Reference in New Issue
Block a user