Haml to erb - does it work with new html5 tags?

Hi,

I wanted to covert all my erb over to haml, but I use HTML5 tags like
nav, section, article, etc. Any idea if this is supported by haml?
Checked out their site, nothing mentioned there or did I miss
something. Sorry noob here.

I wanted to covert all my erb over to haml, but I use HTML5 tags like
nav, section, article, etc. Any idea if this is supported by haml?
Checked out their site, nothing mentioned there or did I miss
something. Sorry noob here.

HAML doesn’t care (at least I don’t think so)…

%div or %nav or %section… they are all just tags…

Now, whether HAML has special support similar to how “#foo” gets turned
into a div with an id of ‘foo’ I don’t know…

-philip

Thanks Philip!

Yea, I meant to ask that specifically, sorry does it support #foo to
be converted to a section tag with id foo or something?

Hey, I made a little test for you:

Modified .html.haml :
%td#whatif.itworks.fine hm?

Gives this (Right click / Viev source ;P)

hm?

But it’s a good question, I’ll check HAML soon too :wink: