Add README for Talks bundle
This commit is contained in:
parent
bf785395d4
commit
5e83b92091
30
src/Talks/README.md
Normal file
30
src/Talks/README.md
Normal 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
|
||||
```
|
Reference in a new issue