Actually, I still disagree.
We can discuss later.
-hampton.
On 8/13/07, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
>
> Actually, I kind of disagree. I mean, ":" certainly might be useful as a
> significant character in tags, but is that really an option we want to
> keep open? We've been thinking that there aren't going to be that many
> new features added to Haml in the future, particularly ones that add to
> the complexity of the syntax (even more particularly the already-complex
> tag syntax). I find myself feeling that unless someone can come up with
> something that Haml can't express elegantly right now, that would be
> best expressed using the colon in some way that would be ambiguous with
> having it in a class, and that's pervasive enough to warrant new syntax,
> we should go ahead and allow colons in class names.
>
> - Nathan
> //
> Hampton wrote:
> > 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
-~----------~----~----~----~------~----~------~--~---