%div{:id=>@id} - if title? .title="#{attr :caption}#{title}" .content.monospaced -# Haml automatically preserves whitespace in
tags by replacing newlines with
- if attr? :style, 'source'
%pre{:class=>['highlight', ('CodeRay' if attr? 'source-highlighter', 'coderay')]}
-# ...but I'm not sure about the tag
%code{:class=>(attr :language)}~content
- else
%pre=content