{% macro headings() %} day depart arrive ship economy standard flexi {% endmacro %} {% macro route_table(dep, arr, days) %} {{ headings() }} {% for day in days %} {% set date = parse_date(day.date) %} {% for crossing in day.prices %} {# #} {% endfor %} {% endfor %}
{{ crossing }}
{{ date.strftime("%a, %d %b") }} {{ crossing.departureDateTime.time }} {{ crossing.arrivalDateTime.time }} {{ crossing.shipName }} £{{ crossing.economyPrice.amount }} £{{ crossing.standardPrice.amount }} £{{ crossing.flexiPrice.amount }} {% if crossing.full %}full |{% endif %} {% if crossing.isCabinSpaceFull %}no cabin space |{% endif %}
{% endmacro %}