Spaces:
Running
Running
Replace Python methods with Jinja filters. These usually have the same name, for example string.lower() becomes | |
string|lower, and dict.items() becomes dict|items. One notable change is that string.strip() becomes string|trim. | |
See the list of built-in filters | |
in the Jinja documentation for more. | |
Replace True, False and None, which are Python-specific, with true, false and none. | |
Directly rendering a dict or list may give different results in other implementations (for example, string entries | |
might change from single-quoted to double-quoted). Adding the tojson filter can help to ensure consistency here. |