Methods

Class/Module Index [+]

Quicksearch

Asciidoctor::HTML5::BlockOlistTemplate

Public Instance Methods

template() click to toggle source
# File lib/asciidoctor/backends/html5.rb, line 640
def template
  @template ||= @eruby.new <%#encoding:UTF-8%><% style = attr 'style', nil, false %><div#{id} class="olist#{style_class}#{role_class}">#{title_div}<ol class="<%= style %>"<%= (type = ::Asciidoctor::ORDERED_LIST_KEYWORDS[style]) ? %( type="\#{type}") : nil %>#{attribute('start', :start)}><%content.each do |item| %><li><p><%= item.text %></p><%  if item.blocks? %><%= item.content %><%  end %></li><%end %></ol></div>
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.