The string `#{` was causing any yard links later in the file not to be
rendered (e.g. the literal "{Haml::Helpers}" is left in the html).
Close the open brace so yard creates the links correctly.
If the mime_type of the ActionView::Template template
being rendered is 'text/xml' then add the a :mime_type
key to the options hash so Haml::Engine will force a
format of xhtml.
Closes#427
Signed-off-by: Norman Clarke <norman@njclarke.com>