Add README for Talks bundle

This commit is contained in:
Oliver Davies 2019-05-20 02:19:21 +01:00
parent bf785395d4
commit 5e83b92091

30
src/Talks/README.md Normal file
View file

@ -0,0 +1,30 @@
# Talks Bundle
## Twig Extensions
### Functions
* `getTalks()` - get all talks
```twig
{% set talks = getTalks(data.talks) %}
```
### Filters
* `events` - get events from talks
```twig
{% set talks = getTalks(data.talks)|events
```
* `past` - filter by past events
```twig
{% set talks = getTalks(data.talks)|past
```
* `upcoming` - filter by current and upcoming events
```twig
{% set talks = getTalks(data.talks)|upcoming
```