Pass sessions into the schedule partial
This commit is contained in:
parent
d100b42164
commit
9ed1314762
|
@ -3,7 +3,7 @@ layout: default
|
||||||
twitter:
|
twitter:
|
||||||
url: https://twitter.com/drupalcampbris
|
url: https://twitter.com/drupalcampbris
|
||||||
update_text: Early bird tickets are now available!
|
update_text: Early bird tickets are now available!
|
||||||
use: [speakers]
|
use: [sessions, speakers]
|
||||||
---
|
---
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<main class="tw-bg-balloon tw-bg-center tw-bg-cover tw-flex tw-flex-col tw-flex-1">
|
<main class="tw-bg-balloon tw-bg-center tw-bg-cover tw-flex tw-flex-col tw-flex-1">
|
||||||
|
@ -45,6 +45,7 @@ use: [speakers]
|
||||||
} %}
|
} %}
|
||||||
|
|
||||||
{% include 'schedule' with {
|
{% include 'schedule' with {
|
||||||
|
sessions: data.sessions,
|
||||||
slots: site.schedule.slots,
|
slots: site.schedule.slots,
|
||||||
} %}
|
} %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
4
src/Schedule/services.yml
Normal file
4
src/Schedule/services.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
services:
|
||||||
|
App\Schedule\TwigExtension\ScheduleExtension:
|
||||||
|
tags:
|
||||||
|
- { name: twig.extension }
|
Loading…
Reference in a new issue