Hrrrm.... the .something syntax is simply a shortcut and I hate to
formally add : to it without assigning any extra meaning to it or
efficiency.

It might not be hard to add, but it means we can't ever use : in any
significant way (perhaps we want to make it easier to use RDF later
with some better short-cuts?) if we add it.

My take on this is "hold-off". We can solve it now, but a little more
awkwardly than we'd like. So, let's let this one simmer before we
change the way haml-tag parsing works.

Deal?

-hampton.

On 8/12/07, mylan <[EMAIL PROTECTED]> wrote:
>
> I noticed colons aren't supported in the class name for the dot-
> notation.  This isn't much of a problem, but I expect it will come up
> more often in the future with RDFa adoption.  I don't suppose it would
> be "simple" to support this case?
>
>
> This works fine
>   %span{ :about=>"http://example.com/this#";, :class =>
> 'rdfs:Resource'}
>
> Renders
>   <span about='http://example.com/this#' class='rdfs:Resource'>
>
>
> This works fine
>   %span.foo{ :about=>"http://example.com/this#";, :class =>
> 'rdfs:Resource'}
>
> Renders
>   <span about='http://example.com/this#' class='rdfs:Resource foo'>
>
>
> This
>   %span.rdfs:Resource{ :about=>"http://example.com/this#"}
>
> Gives
>   Illegal Nesting: Nesting within a tag that already has content is
> illegal.
>
>
> This
>   %span.'rdfs:Resource'{ :about=>"http://example.com/this#"}
>
> Gives
>   Illegal element: classes and ids must have values. Use %div instead.
>
>
> =my=
>
>
> >
>

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