On Mar 4, 2008, at 5:24 PM, Nex3 wrote:

>
> Hey folks,
>
> When Haml was originally created, Hampton decided to make it even
> easier to create divs than it was to create other sorts of tags by
> making divs the default.
>
> Mislav Marohnić had an interesting idea for extending this. In some
> cases, divs are invalid - within a p tag, for example, or an ol. What
> if instead of producing a div, an implicit tag would create whatever
> makes sense? A span, an li, maybe a tr or td.
>
> There are a few potential issues with this. It makes Haml's output
> more dependent on the document context than it usually is, and might
> break a few templates. On the other hand, you should be thinking about
> the context in which you use divs anyway, and any templates it breaks
> are invalid anyway.
>
> So I wanted to get the community's opinion on this. Is this something
> you'd like? Something you'd dislike? Or does it not really matter to
> you?
>
> If you want to try it out, grab Mislav's Haml fork at git:// 
> github.com/mislav/haml.git.
>
> - Nathan

So, to summarize thus far:

- It seems like a good idea, because invalid markup is harder to  
create (would it really know the DTDs?)
- It might save typing (or not)
- Surprising things might happen so programmers should be able to  
control it
- Maybe an explicit way to invoke it using a "guess" syntax would be  
good (or not)
- Partials present a problem because they are compiled first and don't  
know about their context

Question: Is Haml likely to succeed at enforcing standards-compliant  
(X)HTML or might it just give the illusion of that? If the latter,  
then I think this might better be handled in (X)HTML validators that  
send you back to your source with your tail tucked between your legs.  
Validators can also handle your CSS. Granted, that has to happen on a  
per-page basis, but it's pretty darn reliable.

Fair?
--~--~---------~--~----~------------~-------~--~----~
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