Methods

Class/Module Index [+]

Quicksearch

Asciidoctor::HTML5::InlineImageTemplate

Public Instance Methods

template() click to toggle source
# File lib/asciidoctor/backends/html5.rb, line 961
def template
  # care is taken here to avoid a space inside the optional <a> tag
  @template ||= @eruby.new <%#encoding:UTF-8%><span class="image#{role_class}"><%if attr? :link %><a class="image" href="<%= attr :link %>"><%end %><img src="<%= image_uri(@target) %>" alt="<%= attr :alt %>"#{attribute('width', :width)}#{attribute('height', :height)}#{attribute('title', :title)}><%if attr? :link%></a><% end%></span>
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.