by tptacek · 17y ago · 0 comments
%a.post_link.confirm_link.destructive_link{link_to(@x)}
Hi mom
I'm probably not selling it very well. But basically, you know the old DOM tutorials that talk about how you can do you own tags like: <box name="foo">
<item number="1" />
<item number="2" />
</box>
and then convert it to <div class="box" id="foo">
<div clas="item" id="item_1" />
<div clas="item" id="item_2" />
</div>
or whatever; in Haml, that's just: .box#foo
.item#item_1
.item#item_2I also worry about creating something in HAML and having people not familiar with it not be able to dive into the project and start working right away. I'm actually on the other side of that scenario right now and it's a pain.
But I do have to admit, it's a very pleasing syntax.