-
-
Notifications
You must be signed in to change notification settings - Fork 772
Closed
Description
I was messing around with a custom _rows_and_columns.html
template and ended up with this:
{% for row in display_rows %}
<div>
<hr>
{% for cell in row %}
{% if cell.column == "First_Name" %}
<h2 class="scientist">{{ cell.value }}
{% elif cell.column == "Last_Name" %}
{{ cell.value }}</h1>
{% elif cell.column == "Short_Description" %}
<p><strong>{{ cell.column }}: </strong>{{ cell.value }}</p>
<p>
{% else %}
<strong>{{ cell.column }}: </strong>{{ cell.value }}
{% endif %}
{% endfor %}
</div>
{% endfor %}
This is nasty. I'd like to be able to do something like this instead:
{% for row in display_rows %}
<h2 class="scientist">{{ row["First_Name"] }} {{ row["Last_Name"] }}</h2>
...