|
amritaは html/xhtml 用のテンプレートライブラリです。 テンプレートとモデルデータから html ドキュメントを生成します。
特色
amrita は テンプレートとモデルデータを id 属性によってマッチさせて、 HTML文書を出力します。
テンプレート:
<table border="1"> <tr><th>name</th><th>author</th></tr> <tr id="table1"> <td id="name"><td id="author"> </tr> </table>
データ:
data = { :table1=>[ { :name=>"Ruby", :author=>"matz" }, { :name=>"perl", :author=>"Larry Wall" }, { :name=>"python", :author=>"Guido van Rossum" }, ] }
テンプレート + データ = 文書:
<table> <tr> <th>name</th> <th>author</th> </tr> <tr> <td>Ruby</td> <td>matz</td> </tr> <tr> <td>perl</td> .......
amritaは strscan 0.6.5以降を必要とします。
amrita は 全てRubyで書かれています。 三種類のインストール方法があります。
$ make # make install
# ruby install.rb
amritaはフリーソフトウエアです。Ruby本体と同様のライセンスで配布しています。
別のライセンス形態が必要な場合は、個別に商用ライセンスを発行することを 検討しています。詳しくはメールしてください。
Amrita is Copyright (c) 2002 Taku Nakajima. It is free software, and may be redistributed under the terms specified in the README file of the Ruby distribution.
If you want to use Amrita in other license form, I will give you a BSD-like special license for only specified person and specified purpose. Please mail me about it in JAPANESE for detail.
Author: | Taku Nakajima <tnakajima@brain-tokyo.jp> |
Requires: | Ruby 1.6.7 or later strscan 0.6.5 or later |
License: | Copyright (c) 2002 Taku Nakajima Released under Ruby's License |
LocalWords: xhtml