# File lib/asciidoctor/backends/html5.rb, line 605 def quote(text, type, role) start_tag, end_tag = QUOTED_TAGS[type] || ['', ''] if role "#{start_tag}<span class=\"#{role}\">#{text}</span>#{end_tag}" else "#{start_tag}#{text}#{end_tag}" end end
# File lib/asciidoctor/backends/html5.rb, line 614 def template # very hot piece of code, optimized for speed @template ||= @eruby.new "<%#encoding:UTF-8%><%= template.quote(@text, @type, attr('role')) %> " end