トップ 新規 一覧 検索 ヘルプ RSS ログイン

Tenjinの変更点

  • 追加された行はこのように表示されます。
  • 削除された行はこのように表示されます。
alalah; http://wholelifeinsurance.fun.to whole life insurance; http://finance.groups.yahoo.com/group/health_insurance-/ health insurance; http://webalias.com/affordablehealthinsuran health insurance; http://affordablehealthinsuran.learn.to low cost health insurance; http://cheapautoinsurance.webalias.com free online auto insurance quotes; http://escape.to/lowcostautoinsurance low cost auto insurance; http://onlineautoinsurance.fun.to car insurance quotes; http://cheaphealthinsurance.tophonors.com cheap health insurance; http://webalias.com/carinsurancerates car insurance rates,; http://lifeinsurance.radpages.com online life insurance,; http://webalias.com/cheapcarinsurance cheap car insurance; http://affordablehealthinsuran.escape.to affordable health insurance; http://browser.to/homeownersinsuranceall home insurance leads; http://finance.groups.yahoo.com/group/auto-insurance-quotes cheap auto insurance; http://cheapautoinsurance.moviefever.com auto insurance quotes; http://autoinsurancerates.radpages.com auto insurance rates; http://radpages.com/healthinsuranceforall group health insurance,; http://cheapcarinsurance.webalias.com cheap car insurance california; http://tophonors.com/cheaphealthinsurance group health insurance,; http://escape.to/affordablehealthinsuran affordable health insurance,; http://sports-reports.com/affordablecarinsurance cheap car insurance; http://carinsurance.thrill.to cheap car insurance; http://webalias.com/cheaphealthinsurance cheap health insurance; http://autoinsurancequotes.resourcez.com auto insurance quotes; http://webalias.com/onlineautoinsurance online auto insurance; http://finance.groups.yahoo.com/group/car-insurance-quotes_ auto insurance quotes; http://finance.groups.yahoo.com/group/long-term-care-insurance long term care insurance; http://healthinsuranceforall.webalias.com health insurance; http://autoinsurancerates.webalias.com cheap car insurance; http://termlifeinsurance.sports-reports.com term life insurance; http://finance.groups.yahoo.com/group/affordable-car-insurance cheap car insurance; http://lifeinsurance.iMegastores.com life insurance; http://escape.to/discountautoinsurances cheap auto insurance; http://affordablecarinsurance.webalias.com cheap auto insurance; 
高速なテンプレートエンジン。

::公式サイト(英語)
:::http://www.kuwata-lab.com/tenjin/
::User's Guide(英語)
:::http://www.kuwata-lab.com/tenjin/rbtenjin-users-guide.html

Ruby用のrbTenjin以外にも、PHPやJavaScript向けの同様ライブラリもある。

!!!HTML補助メソッド

rbTenjin0.6.0時点で、公式サイトのドキュメントには書かれていない、HTML/XML補助メソッドがいくつか存在する。これらは Tenjin::HtmlHelper モジュールのモジュール関数である。

!!checked(expr)
!!selected(expr)
exprが真であれば、HTMLフォーム用にchecked/selected属性を出力する。

 <input type="checkbox" #{checked(true)}>

!!nl2br(text)
text の改行を <br /> に変換する。

!!text2html(text)
text の改行を <br /> に、半角スペースを &nbsp; に変換し、同時にHTML特殊文字をエスケープする。