A JavaScript Template module for embedded <audio>
- Source:
Parameters:
Name | Type | Description |
---|---|---|
eleventyConfig | Object | 11ty’s Config API |
Methods
(inner) audio(audio) → {String}
Embedded audio markup
- Source:
Parameters:
Name | Type | Description |
---|---|---|
audio | Object | The audio data object |
Returns:
- Type:
String
HTML template literal
Example
`${this.audioPlaylist(data.audio(track)}`