rename
Rename a variable of any type. The value, the type and the values in every value set move to the new key. Every block property bound to the variable follows the new key and keeps its value. For a text variable, every {{key}} token in text blocks and page titles is rewritten too. A key inside a longer expression or a statement, such as {% if key %}, is not renamed. Experimental: this API may change in a minor release.
Parameters
from
the current key of the variable.
to
the new key. It must not be empty, start or end with whitespace, contain "{{" or "}}", be "scene_root", start with "ubq.", or name another variable.