class Asciidoctor::HTML5::BlockVideoTemplate

Public Instance Methods

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