def template
@template ||= @eruby.new "<%#encoding:UTF-8%><div\#{id} class=\"imageblock\#{style_class}\#{role_class}\"<%\nif (attr? :align) || (attr? :float) %> style=\"<%\nif attr? :align %>text-align: <%= attr :align %><% if attr? :float %>; <% end %><% end %><% if attr? :float %>float: <%= attr :float %><% end %>\"<%\nend %>>\n<div class=\"content\"><%\nif attr? :link %>\n<a class=\"image\" href=\"<%= attr :link %>\"><img src=\"<%= image_uri(attr :target) %>\" alt=\"<%= attr :alt %>\"\#{attribute('width', :width)}\#{attribute('height', :height)}></a><%\nelse %>\n<img src=\"<%= image_uri(attr :target) %>\" alt=\"<%= attr :alt %>\"\#{attribute('width', :width)}\#{attribute('height', :height)}><%\nend %>\n</div>\n\#{title_div :caption => true}\n</div>\n"
end