Can I set different haml options each page?

I want to use different HTML format in a same site.

like this
/index.html (xhtml)
/sp/index.html (html5)
/foo/index.html (xhtml)
/foo/sp/index.html (html5)

I know I can use another layout file for different doctype.
But how can I change %img``%meta to <img ** />``<meta ** /> ?

It’s always renderd to <img **>``<meta **> when set :haml, {:format => :html5} in config.rb or set nothing.

I try %img/``%meta/ but it doesn’t work…

I wonder if I could set haml options per page or directories on config.rb, or Frontmatter.
Any ideas?

thanks.