No - I don't think Haml will ever do any optimizations that will actually
change the rendering of a document. Consider for example

#foo
  %p bar
  baz

If we removed </p>, this would render as

<div id="foo">
  <p>bar
  baz
</div>

which is equivalent to

<div id="foo">
  <p>bar
  baz</p>
</div>

and *not* equivalent to

<div id="foo">
  <p>bar</p>
  baz
</div>

Unless you can come up with a way of removing the tags that is guaranteed
never to produce this sort of change, it's not safe to include it.

On Fri, Jun 26, 2009 at 12:34 AM, Evgeny <[email protected]> wrote:

>
> So can we expand that list to include the other tags mentioned in that
> google article?
> Some of them are not just "self-closing" tags like <br> and <meta>,
> but rather tags with content - like <p> and <li>
>
> On Jun 26, 10:22 am, Nathan Weizenbaum <[email protected]> wrote:
> > Haml does indeed omit the closing tags of self-closing tags such as "br"
> and
> > "meta" in HTML mode.
> >
> >
> >
> > On Fri, Jun 26, 2009 at 12:19 AM, Evgeny <[email protected]>
> wrote:
> >
> > >http://code.google.com/speed/articles/optimizing-html.html
> >
> > > Essentially, not all tags "require" a closing tag when using the HTML
> > > dtd (not XHTML) - does HAML have a mode where he ignores these closing
> > > tags, and thus makes the file size smaller?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to