class Asciidoctor::HTML5::BlockImageTemplate
def template
def template @template ||= @eruby.new <<-EOS #encoding:UTF-8%><div#{id} class="imageblock#{role_class}"> <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> EOS end