From: jonty Date: 2009-03-27T23:57:35+09:00 Subject: Re: tagz-5.0.0 Have tried it out this morning - I am delighted with it - natural ruby style, fast (see http://blog.zenspider.com/2009/02/tagz-vs-markabybuilderhamlerub.html ) Is there a forum / user group or anything for it? I spotted one or two issues I'd like to discuss somewhere is this list the best place? Getting it to work with Sinatra was interesting - I had to setup ruby methods as views, because it is not yet incorporated as a templating engine by Sinatra, but that works fine. Any plans to fit it into Sinatra like the other templating engines? But many thanks Ara. ara.t.howard wrote: > > 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 > > > > >