Methods

Class/Module Index [+]

Quicksearch

Asciidoctor::HTML5::BlockImageTemplate

Public Instance Methods

template() click to toggle source
# File lib/asciidoctor/backends/html5.rb, line 751
def template
  @template ||= @eruby.new <%#encoding:UTF-8%><div#{id} class="imageblock#{style_class}#{role_class}"<%if (attr? :align) || (attr? :float) %> style="<%  if attr? :align %>text-align: <%= attr :align %><% if attr? :float %>; <% end %><% end %><% if attr? :float %>float: <%= attr :float %><% end %>"<%end %>><div class="content"><%if attr? :link %><a class="image" href="<%= attr :link %>"><img src="<%= image_uri(attr :target) %>" alt="<%= attr :alt %>"#{attribute('width', :width)}#{attribute('height', :height)}></a><%else %><img src="<%= image_uri(attr :target) %>" alt="<%= attr :alt %>"#{attribute('width', :width)}#{attribute('height', :height)}><%end %></div>#{title_div :caption => true}</div>
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.