class Asciidoctor::HTML5::BlockVerseTemplate

Public Instance Methods

template() click to toggle source
# File lib/asciidoctor/backends/html5.rb, line 595
  def template
    @template ||= @eruby.new <<-EOS
<%#encoding:UTF-8%><div#{id} class="verseblock#{role_class}">
#{title_div}
<pre class="content"><%= template.preserve_endlines(content, self) %></pre><%
if (attr? :attribution) || (attr? :citetitle) %>
<div class="attribution"><%
  if attr? :citetitle %>
<cite><%= attr :citetitle %></cite><%
  end
  if attr? :attribution
    if attr? :citetitle %>
<br><%
    end %>
<%= "&#8212; \#{attr :attribution}" %><%
  end %>
  </div><%
end %>
</div>
    EOS
  end