On Nov 28, 4:41 am, Widi Harsojo <whars...@gmail.com> wrote: > I want to share my implementation of Haml in W2tags, > (you can try at "w2tags.heroku.com") >
Pretty cool! > second > we have a next tag (^) mean that after ul tag it follows li, after > table tag it follows tr, after tr it follows th and so on ... and > you can put an attribute tag of (:) name, (#) id (.) class after the > command, my point is that it has pattern to follow > > %ul > ^.mnu one > ^.mnu two > ^.mnu three Interesting...I considered a syntax like that, but I decided that most of the subtags are so small to begin with (li, th, td, etc.), you are not really saving any keystrokes once you have to hit "shift" to get the caret. I do like how the "^" visually calls out the parent-child relationship. > > and it can redefine the-next-tag > > %ul > ~^%el_i $0 > ^.mnu one > ^.mnu two > ^.mnu three > I can see how the macro functionality can DRY up your HTML, although often the need for macros indicates that your CSS is not robust enough, correct? -- 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.