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. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Philip Hallstrom
2011-Mar-02 18:17 UTC
Re: haml to erb - does it work with new html5 tags?
> 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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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? On Mar 2, 11:17 pm, Philip Hallstrom <phi...-LSG90OXdqQE@public.gmane.org> wrote:> > 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-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hey, I made a little test for you:
Modified .html.haml :
%td#whatif.itworks.fine hm?
Gives this (Right click / Viev source ;P)
<td class=''itworks fine''
id=''whatif''>hm?</td>
But it''s a good question, I''ll check HAML soon too ;)
On Mar 2, 7:20 pm, Manoj Sachwani
<i...-IEKcLuOed2v4sGZhQOaHnw@public.gmane.org>
wrote:> 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?
>
> On Mar 2, 11:17 pm, Philip Hallstrom
<phi...-LSG90OXdqQE@public.gmane.org> wrote:
>
>
>
>
>
>
>
> > > 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
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.