Open willcAND opened 1 year ago
Tasks for this ticket:
Across the codebase we are using the python specific syntax seen below.
One example would be inside the select component.
select
{% for attribute, value in (params.attributes.items() if params.attributes is mapping and params.attributes.items else params.attributes) %}
Inside this same component we are using the following shorthand version. Could we remove the above line in favour of the shorthand?
{% for attribute, value in params.attributes %}{{ attribute }}="{{ value }}"{% endfor %}
Need to test this to see if it causes any issues inside a python application.
May need @rmccar support?
Will cause multiple breaking changes across 90% of the components - added low prio label.
Tasks for this ticket:
Across the codebase we are using the python specific syntax seen below.
One example would be inside the
select
component.{% for attribute, value in (params.attributes.items() if params.attributes is mapping and params.attributes.items else params.attributes) %}
Inside this same component we are using the following shorthand version. Could we remove the above line in favour of the shorthand?
{% for attribute, value in params.attributes %}{{ attribute }}="{{ value }}"{% endfor %}
Need to test this to see if it causes any issues inside a python application.