From: "ara.t.howard" Date: 2009-03-27T11:35:10+09:00 Subject: Re: tagz-5.0.0 On Mar 26, 2009, at 4:47 PM, jonty wrote: > I have been using haml out of necessity recently (sinatra), erb is > too much like hard work. > I find that haml is deeply frustrating as getting the whitespace > right to nest things properly is, quite frankly, a pain. > Markaby used the right sort of syntax I think and therefore I am > mightily intrigued by Tagz. > > Is it fast?? it's fairly fast, but not as fast as erb. it's faster that builder or rexml for xml though. i actually find mixing erb and tagz is the best approach. my erb templates are generally < 100 lines and look something like foobar <%= ul_(:class => 'pretty'{ @records.each do |record| li_{ record.name } end } %> in erb... when that gets to ugly i factor or helpers that look like this def the_list ul_(:class => 'pretty'{ @records.each do |record| li_{ record.name } end } end and then tagz really starts to shine - you can stay in erb for the designer friendly bits and use straight tagz or factored out tagz for the logic bits. 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