Saving keystrokes or keeping it DRY. The choice of words make the
difference? =)

It's pretty obvious what will happen, no? Wherever we would earlier
default to DIVs ("the most generic tag") we will now default to "the
most generic tag allowed" (TRs and TDs in this case).

Without the plugin:
<table>
  <div class='head'>
    <div class='row1'>
    </div>
  </div>
  <div class='body1'>
    YO
  </div>
  <div class='body2'>
    MOMMA
  </div>
</table>

With the plugin:
<table>
  <tr class='head'>
    <td class='row1'></td>
  </tr>
  <tr class='body1'>
    YO
  </tr>
  <tr class='body2'>
    MOMMA
  </tr>
</table>

One of them makes more sense than the other. =)

I'm still a bit confused on why we don't enforce guess syntax though.
I think that would make it backward compatible with existing
templates, or am I missing something?

/PEZ

On Oct 21, 12:59 am, hampton c <[EMAIL PROTECTED]> wrote:
> Yeah... here comes this one again.
>
> Ok, I first I totally get where you guys are coming from. Seems weird
> to have to be that explicit.
>
> I mean, Haml could save you literally tens of keystrokes per
> project!!!!
>
> However, you trade clarity in this case... and that's not cool.
>
> %table
>   .head
>     .row1
>   .body1
>      YO
>   .body2
>     MOMMA
>
> So, what does this do? Is head a <thead> or is a <tr>? What if I don't
> want a header?
>
> The point is the same as using "unless" in Ruby. It takes more thought
> to figure out what it
> means. And the whole point of Haml, besides saving keystrokes, is to
> make it *immediately*
> clear what is going on in a particular document.
>
> Anything determined at runtime that would require thought and
> knowledge about the HTML spec
> is seriously not cool.
>
> Feel free to keep it as a plugin, but this is staying out of Haml core
> for now...
>
> -hampton.
>
> On Oct 20, 6:36 pm, PEZ <[EMAIL PROTECTED]> wrote:
>
> > I made a version of haml.vim with support for this 
> > plugin:http://gist.github.com/18203
>
> > /PEZ
>
> > On Oct 19, 3:14 pm, "Mislav Marohnić" <[EMAIL PROTECTED]>
> > wrote:
>
> > > On Sun, Oct 19, 2008 at 14:58, Mislav Marohnić <[EMAIL PROTECTED]>wrote:
>
> > > > Making the "guess" syntax will probably require much more 
> > > > monkeypatching.
>
> > > I lied. It wasn't so hard (gist updated)
>
>
--~--~---------~--~----~------------~-------~--~----~
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