# File lib/asciidoctor/backends/html5.rb, line 322 def paragraph(id, role, title, content) %Q(<div#{id && " id=\"#{id}\""} class=\"paragraph#{role && " #{role}"}\"> #{title && "<div class=\"title\">#{title}</div>"} <p>#{content}</p> </div>) end
# File lib/asciidoctor/backends/html5.rb, line 329 def template # very hot piece of code, optimized for speed @template ||= @eruby.new "<%#encoding:UTF-8%><%= template.paragraph(@id, (attr 'role'), title? ? title : nil, content) %> " end