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