jinja : add missing tojson filter for bool (#18900)
* add missing tojson for bool * add more literal tests
This commit is contained in:
parent
420960ab92
commit
10c98cbdf6
2 changed files with 61 additions and 0 deletions
|
|
@ -698,6 +698,7 @@ const func_builtins & value_bool_t::get_builtins() const {
|
|||
bool val = args.get_pos(0)->as_bool();
|
||||
return mk_val<value_string>(val ? "True" : "False");
|
||||
}},
|
||||
{"tojson", tojson},
|
||||
};
|
||||
return builtins;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue