From: kwa@... (makotz) Date: 2003-03-17T02:39:25+09:00 Subject: Question about Amrita Hi, I have a question about amrita. (amrita is a XML/HTML based template engine, see http://www.brain-tokyo.jp/research/amrita/index.html ) I'm now trying amrita and create a sample program. ---------------------------------------- require 'amrita/template' include Amrita t = TemplateText.new < END links = [ { :lang=>a(:href=>'http://www.ruby-lang.org'){"ruby"} }, { :lang=>a(:href=>'http://www.python.org') {"python"} }, { :lang=>a(:href=>'http://www.perl.org') {"perl"} }, ] data = { :links=>links } t.expand(STDOUT, data) ---------------------------------------- This works fine. Here is output. ----------------------------------------
ruby
python
perl
---------------------------------------- And, I want to generate a colored row table, like this: ----------------------------------------
ruby
python
perl
---------------------------------------- But I don't know how to write an amrita code :-< In other words, what I want to do is to add an attribute 'class' to ''. I can add attributes to '' with a() method, but cannot add to ''. If you are an amrita user, please give me an advice. regards makotz kuwata