Methods

Class/Module Index [+]

Quicksearch

Asciidoctor::HTML5::BlockAudioTemplate

Public Instance Methods

template() click to toggle source
# File lib/asciidoctor/backends/html5.rb, line 771
def template
  @template ||= @eruby.new <%#encoding:UTF-8%><div#{id} class="audioblock#{style_class}#{role_class}">#{title_div :caption => true}<div class="content"><audio src="<%= media_uri(attr :target) %>"<%if attr? 'autoplay-option' %> autoplay<% end %><%unless attr? 'nocontrols-option' %> controls<% end %><%if attr? 'loop-option' %> loop<% end %>>Your browser does not support the audio tag.</audio></div></div>
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.