From: "ara.t.howard" Date: 2009-03-25T02:02:29+09:00 Subject: Re: tagz-5.0.0 On Mar 24, 2009, at 9:43 AM, Brian Candler wrote: > Ara Howard wrote: >> you mean combining erb with the dsl i assume? > > At a lower level, the use of hashes to represent attributes is > strikingly similar. e.g. > > a_(:href => "/foo"){ "bar" } > > compared to HAML: > > %a{:href => "/foo"} bar > or > %a{:href => "/foo"}= "bar" > > HAML lets you put any Ruby expression inside %a{...} which returns a > hash. Of course, tagz is real Ruby code, whereas HAML is its own > language. > > The other thing which struck me was your use of nesting to build > tables. > HAML really excels here, and the indentation-driven syntax means you > don't have to balance the closing parts. Somehow I find this more > natural for web page templates than for code. gotcha. one thing i *really* like about tagz, for real mark-up coding, is that i can use % in vim to match open/close tags in vim (or whatever your fav is) and also can use 'ruby -c' to validate my markup. because it is valid ruby code you get all the ruby goodness and ruby editor goodness for free. it was a side effect i hadn't intended when writing it but have grown to rely on - sorta like tab completion: i just can't go back to visually scanning to make sure xml is balanced and correct ;-) my goal is generally to factor out enough tagz so my erb templates fit on one screen and then i just trust tagz/ruby for the rest. cheers. a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama