FreeMarkerテンプレートエンジン【Velocityよりずっとまし】 (100レス)
上下前次1-新
5: 2005/07/08(金)01:42 ID:??? AAS
FreeMarker is designed to be practical for the generation of HTML Web
pages, particularly by servlet-based applications following the MVC
(Model View Controller) pattern. The idea behind using the MVC pattern
for dynamic Web pages is that you separate the designers (HTML authors)
from the programmers. Everybody works on what they are good at.
Designers can change the appearance of a page without programmers having
to change or recompile code, because the application logic (Java
programs) and page design (FreeMarker templates) are separated.
Templates do not become polluted with complex program fragments. This
separation is useful even for projects where the programmer and the HMTL
page author is the same person, since it helps keeping the application
clear and easily maintainable.
FreeMarkerは、特にMVC(モデル、ビュー、コントローラ)パターンにしたがっ
たServletベースのアプリケーションが、HTML Webページを生成するのに実用的
であるよう設計されています。動的なWebページにおいてMVCパターンを使う理由
は、デザイナー(HTMLを書く人)とプログラマーとを分けるためです。人にはそ
れぞれ得意なことがあり、それで仕事をします。〔訳注:FreeMarkerを使えば〕
アプリケーションロジック(Javaプログラム)とページデザイン(FreeMarkerテ
ンプレート)とが分離されるため、デザイナーはページの外見を変更するときに、
プログラマーに変更させたり再コンパイルさせたりする必要がありません。テン
プレートは複雑なプログラム片によって汚染されることがありません。このよう
な分離は、プログラマーとHTMLページ作成者とが同じ人間である場合でも有用で
す。なぜなら、分離によってアプリケーションをきれいに保ち、メンテナンスが
容易になるからです。
上下前次1-新書関写板覧索設栞歴
あと 95 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル
ぬこの手 ぬこTOP 0.402s*