If I were redesigning Haml from scratch, I'd actually try to make it *easier * to write tags and *harder* to write content. That is, I'd have the tag be the default and the content require an extra character. Something like this:
html head title foo body p > This is text. > I like text! Haml has always been focused on the structure of the document. That's why it has indentation, which makes inline tags harder to use, and why we recommend the Markdown filter rather than providing better inline formatting options. And this works well: when you're using Haml, what you're mostly trying to do is create the structure of the document. An indentation-based tool is simply not well-suited for dealing with documents that are all about the content. On Fri, Nov 27, 2009 at 1:57 PM, Steve Howell <showel...@yahoo.com> wrote: > On Nov 27, 1:29 pm, Bradley Grzesiak <listro...@gmail.com> wrote: > > I agree with Chris, but on a separate level. While I agree that content > is > > very important, the corresponding context is also important. By > implementing > > HTML in a semantic way, we – as authors – provide (hopefully) minimal > hints > > at the context just before the content. > > > > Thanks, that is useful feedback! > > > Of course, this falls away as we start piling on extra markup like a > giant > > "style" attribute (which, arguably, is poor semantic authoring). > > > > LOL...yep, in a way, creating a mechanism to push the markup aside > just deodorizes the smell of poor semantic authoring. > > > Anyway, I appreciate Steve thinking outside the box, but in the end... > it's > > not for me. > > > > Cool...not all is lost. There are two orthogonal goals that I had-- > one was to keep the markup DRY even for one-liners, and the other was > to put content before markup. I think I might abandon the latter goal > while keeping the former, which will get me closer to HAML. > > -- > > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to h...@googlegroups.com. > To unsubscribe from this group, send email to > haml+unsubscr...@googlegroups.com <haml%2bunsubscr...@googlegroups.com>. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to h...@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.