{# -*- mode: jinja2; -*- #}
{#
SPDX-License-Identifier: CC0-1.0
This file is part of lpschedule-generator.
#}
{# macros start #}
{# make speakers macro #}
{% macro mk_speakers(speakers) %}
{% if speakers[0]|lower != 'speakertba' %}
{% for speaker in speakers %}
{% if loop.last %}
{{ speaker }}
{% else %}
{{ speaker }},
{% endif %}
{% endfor %}
{% endif %}
{% endmacro %}
{# make room macro #}
{% macro mk_room(room) %}
{% if room|lower != 'roomtba' %}
{{ room }}
{% endif %}
{% endmacro %}
{# make day header macro #}
{% macro mk_day_header(day, collapse_area) %}
{% if day|trim != '' %}
{{ day }}
{{ timeslot }}
{{ session }}
{{ desc_p }}
{% endfor %} {% endmacro %} {# populate sessions macro #} {% macro populate_sessions(sessions, day_index, timeslot_index) %} {% for session, session_info in sessions.iteritems() %} {# session start #}{{ mk_room(session_info['room']) }} {% if session_info['desc'][0]|lower == 'desctba' %}
{% else %}