From: Brian Candler Date: 2009-03-25T00:43:37+09:00 Subject: Re: tagz-5.0.0 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. > i've used this > > def unindent! s Yes, that's the sort of thing I was thinking of. HAML like this would still need to go via a compilation phase each time it is executed, whereas tagz is just run. Hence the benefit to keeping HAML snippets separate and cached. Regards, Brian. -- Posted via http://www.ruby-forum.com/.