class Asciidoctor::BaseTemplate # create template matter to insert a style class from the role attribute if specified def style_class attrvalue(:role) end end module Asciidoctor::HTML5 class DocumentTemplate < ::Asciidoctor::BaseTemplate def render_outline(node, to_depth = 2) toc_level = nil sections = node.sections unless sections.empty? toc_level, indent = '' unless node.is_a?(::Asciidoctor::Document) indent = ' ' * (node.document.doctype == 'book' ? node.level + 1 : node.level) end toc_level << "#{indent}
<%= dd.text %>
<% end %> <% if dd.blocks? %> <%= dd.content %> <% end %><%= template.preserve_endlines(content, self) %>
<% else %>
<%= template.preserve_endlines(content, self) %><% end %>
<%= template.preserve_endlines(content, self) %>
<% if attr? :icons %>
<%= attr :caption %>
<% end %>
|
<% unless title.nil? %>
<%= title %>
<% end %>
<%= content %>
|
<%= content %>
<%= template.preserve_endlines(content, self) %>
<%= li.text %>
<% if li.blocks? %> <%= li.content %> <% end %><%= li.text %>
<% if li.blocks? %> <%= li.content %> <% end %><%= li.text %>