_includes/shortcodes/audio

A JavaScript Template module for embedded <audio>

Source:
Parameters:
NameTypeDescription
eleventyConfigObject

11ty’s Config API

Methods

(inner) audio(audio) → {String}

Embedded audio markup

Source:
Parameters:
NameTypeDescription
audioObject

The audio data object

Returns:
Type:
String

HTML template literal

Example
`${this.audioPlaylist(data.audio(track)}`