class Asciidoctor::HTML5::BlockAdmonitionTemplate

Public Instance Methods

template() click to toggle source
# File lib/asciidoctor/backends/html5.rb, line 458
  def template
    @template ||= @eruby.new "<%#encoding:UTF-8%><div#{id} class="admonitionblock <%= attr :name %>#{role_class}">
<table>
<tr>
<td class="icon"><%
if attr? 'icons', 'font' %>
<i class="icon-<%= attr :name %>" title="<%= @caption %>"></i><%
elsif attr? 'icons' %>
<img src="<%= icon_uri(attr :name) %>" alt="<%= @caption %>"><%
else %>
<div class="title"><%= @caption %></div><%
end %>
</td>
<td class="content">
#{title_div}
<%= content %>
</td>
</tr>
</table>
</div>
"
  end