FreeMarkerテンプレートエンジン【Velocityよりずっとまし】at PHPFreeMarkerテンプレートエンジン【Velocityよりずっとまし】 - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト6:nobodyさん 05/07/08 01:50:35 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 7:nobodyさん 05/07/08 01:57:39 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)のビュー コンポーネントとして使用することができます。 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch