I want to convert this code to something more inheritable to avoid coding. Consider that my code is simple and simple answer is need.
{{ entity.name }}
{{ entity.description }}
I want to convert to such code:
{% for attribute in attributes %}
{{ entity ??? }} == entity.get_attr(attribute)
{% end for %}
What is valid syntax for it?