On Sun, Oct 19, 2008 at 11:38, PEZ <[EMAIL PROTECTED]> wrote:
>
> I got this idea that Haml could help out with making it easier to
> express tables and ul-list and other such structures by making clever
> guesses about the default tag. div is very common, but doesn't always
> make sense so then haml could maybe pick a default that makes sense?
Yeah, I should really dust off my "html" branch, maybe rebase it against
current Haml. I should make this into a plugin.
Here is what the syntax would be (feedback please):
%table -- <table>
%.odd -- <tr class="odd">
% foo -- <td>foo</td>
% bar -- <td>bar</td>
%.even
...
So, the "%" character without tag name would mean "the most common HTML
element allowed in this context". This is the "guess" syntax proposed by
Hampton.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---