FreeMarkerテンプレートエンジン【Velocityよりずっとまし】at PHPFreeMarkerテンプレートエンジン【Velocityよりずっとまし】 - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト23:FreeMarker vs. Velocity 05/07/14 03:10:43 [ Expose typos and other mistakes in template ] * When you try to access an undefined variable, FreeMarker will not accept that silently. You can configure FreeMarker to stop template rendering with an error message, or skip the wrong part. In either case, FreeMarker will log the problem, so it does not remain hidden. * FreeMarker will throw an exception if you mistype a directive name, and will not print the statement silently to the output (unless you use the now deprecated non-strict syntax). [ テンプレート中のTypoや間違いを指摘 ] * 未定義の変数にアクセスした場合、FreeMarkerは黙ったままそれを許すことはしません。 FreeMarkerの設定を変更することで、間違いが合った場合はテンプレートのレンダリングを中止して エラーメッセージを表示させることも、また間違った箇所をスキップさせることもできます。 どちらの場合でも、FreeMarkerは問題があればそれをログに残すので、エラーが隠されたままになることはありません。 * ディレクティブ名を間違えたとき、FreeMarkerは例外を発生します。そのため、黙って文を出力に表示することはありません (厳密ではない構文を使った場合はこの限りではありませんが、現在では廃止予定となっています)。 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch