FreeMarkerテンプレートエンジン【Velocityよりずっとまし】 (100レス)
FreeMarkerテンプレートエンジン【Velocityよりずっとまし】 http://medaka.5ch.io/test/read.cgi/php/1120519290/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
1: 1 [sage] 2005/07/05(火) 08:21:30 ID:??? 内容: FreeMarkerは、Java用としては現時点で最強のテンプレートシステム。 Velocityなんか目じゃないぐらい、簡単、高機能、高性能(最大で約2倍速い)。 WebWork2もVelocityからFreeMarkerに乗り換えた。 本家 http://freemarker.sourceforge.net/ 特徴 http://freemarker.sourceforge.net/features.html Velocityとの比較 http://freemarker.sourceforge.net/fmVsVel.html ベンチマークやら機能比較やら http://doikun.cocolog-nifty.com/dowilog/cat1515211/index.html 駄スレだが許せ。 http://medaka.5ch.io/test/read.cgi/php/1120519290/1
2: nobodyさん [sage] 2005/07/05(火) 09:45:56 ID:??? ハッシュドビーフ http://medaka.5ch.io/test/read.cgi/php/1120519290/2
3: nobodyさん [sage] 2005/07/05(火) 15:37:11 ID:??? Velocityとの比較を見てると、Velocityってそんなこともできなかったのねと思ったりするが、なぜこの板なのかという疑問は解消できない。 http://medaka.5ch.io/test/read.cgi/php/1120519290/3
4: What is FreeMarker? [FreeMarkerって何よ?] 2005/07/08(金) 01:35:41 ID:??? What is FreeMarker? FreeMarkerって何よ? FreeMarker is a "template engine"; a generic tool to generate text output (anything from HTML to autogenerated source code) based on templates. It's a Java package, a class library for Java programmers. It's not an application for end-users in itself, but something that programmers can embed into their products. FreeMarkerとは、テンプレートに基づいてテキスト出力(HTMLからソースコード まで何でも)を生成する汎用のツール、つまり「テンプレートエンジン」です。 FreeMarkerはJavaパッケージ(Javaプログラマーのためのクラスライブラリ)で す。それ自体はエンドユーザのためのアプリケーションではなく、プログラマー が製品に埋め込んで使用するものです。 http://medaka.5ch.io/test/read.cgi/php/1120519290/4
5: nobodyさん [sage] 2005/07/08(金) 01:42:19 ID:??? 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ページ作成者とが同じ人間である場合でも有用で す。なぜなら、分離によってアプリケーションをきれいに保ち、メンテナンスが 容易になるからです。 http://medaka.5ch.io/test/read.cgi/php/1120519290/5
6: nobodyさん [sage] 2005/07/08(金) 01:50:35 ID:??? Although FreeMarker has some programming capabilities, it is not a full-blown programming language like PHP. Instead, Java programs prepare the data to be displayed, and FreeMarker just generates textual pages that display the prepared data using templates. FreeMarkerはいくらかのプログラミング機能を持っていますが、PHPのような本 格的なプログラミング言語ではありません。表示すべきデータはJavaプログラム で用意し、FreeMarkerはそのデータからテンプレートを用いてテキストベースの ページを生成するだけです。 Overview of FreeMarker workflow FreeMarkerによるワークフローの概観 〔訳注:ここで画像〕 ttp://freemarker.sourceforge.net/images/overview.png http://medaka.5ch.io/test/read.cgi/php/1120519290/6
7: nobodyさん [sage] 2005/07/08(金) 01:57:39 ID:??? FreeMarker is not a Web application framework. It is suitable for a component in a Web application framework, but the FreeMarker engine itself knows nothing about HTTP or servlets. It simply generates text. As such, it is perfectly usable in non-web application environments as well. Note, however, that we provide out-of-the-box solutions for using FreeMarker as the view component of Model 2 frameworks (e.g. Struts), which also let you use JSP taglibs in the templates. FreeMarkerはWebアプリケーションフレームワークではなく、Webアプリケーショ ンフレームワークの1コンポーネントとして存在するのが適切です。しかし FreeMarkerエンジン自体はHTTPやServletとは何の関係もありません。エンジン は単にテキストを生成するだけですので、Webではないアプリケーション環境で も同じように役に立ちます。またFreeMarkerは素の状態でも、テンプレート中に JSPタグライブラリを使うようなModel2フレームワーク(例:Struts)のビュー コンポーネントとして使用することができます。 http://medaka.5ch.io/test/read.cgi/php/1120519290/7
メモ帳
(0/65535文字)
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 93 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.005s