jinja : fix object item order (and properly implement dictsort) (#18904)
* fix object item order * as_ordered_object * copy whole object
This commit is contained in:
@@ -69,7 +69,7 @@ struct context {
|
||||
|
||||
context(const context & parent) : context() {
|
||||
// inherit variables (for example, when entering a new scope)
|
||||
auto & pvar = parent.env->as_object();
|
||||
auto & pvar = parent.env->as_ordered_object();
|
||||
for (const auto & pair : pvar) {
|
||||
set_val(pair.first, pair.second);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user