From: kwa@... (makotz) Date: 2003-03-17T13:20:38+09:00 Subject: Re: Question about Amrita Brian Candler wrote in message news:<20030316193632.GA58317@uk.tiscali.com>... > > links = [ > a(:class=>'odd') { {:lang=>a(:href=>'http://www.ruby-lang.org') {"ruby"} }}, > a(:class=>'even') { {:lang=>a(:href=>'http://www.python.org') {"python"}}}, > a(:class=>'odd') { {:lang=>a(:href=>'http://www.perl.org') {"perl"} }}, > ] > Great! This is what I want! Thank you very much. # and this code is OK in amrita 1.0.2 but NG in 1.8.0. > sample/tour/proc.rb in the Amrita distribution does what you want, setting > element attributes explicitly. See section entitled "proc" at: > http://www.brain-tokyo.jp/research/amrita/rdocs/files/docs/Tour.html I have read it. It is hard for me to understand. ---------------------------------------- t = TemplateText.new < END links = [ Proc.new {|elem| elem[:class]="odd"; ...what to do?...; elem }, Proc.new {|elem| elem[:class]="even"; ...what to do?...; elem }, Proc.new {|elem| elem[:class]="odd"; ...what to do?...; elem }, ] ---------------------------------------- regards makotz