クラス MustacheView

実装されたすべてのインターフェース:
AwareBeanNameAwareInitializingBeanApplicationContextAwareServletContextAwareView

public class MustacheView extends AbstractTemplateView
Mustache テンプレートエンジンを使用した Spring MVC View
導入:
2.0.0
作成者:
Brian Clozel, Dave Syer, Phillip Webb
  • コンストラクターの詳細

    • MustacheView

      public MustacheView()
  • メソッドの詳細

    • setCompiler

      public void setCompiler(com.samskivert.mustache.Mustache.Compiler compiler)
      このビューで使用する Mustache コンパイラーを設定します。

      通常、このプロパティは直接設定されません。代わりに、Mustache テンプレートのコンパイルに使用される Spring アプリケーションコンテキストで単一の Mustache.Compiler が期待されます。

      パラメーター:
      compiler - Mustache コンパイラー
    • setCharset

      public void setCharset(StringSE charset)
      Mustache テンプレートファイルの読み取りに使用する文字セットを設定します。
      パラメーター:
      charset - テンプレートファイルの読み取りに使用する文字セット
    • checkResource

      public boolean checkResource(LocaleSE locale) throws ExceptionSE
      オーバーライド:
      クラス AbstractUrlBasedViewcheckResource 
      例外:
      ExceptionSE
    • renderMergedTemplateModel

      protected void renderMergedTemplateModel(MapSE<StringSE,ObjectSE> model, HttpServletRequestEE request, HttpServletResponseEE response) throws ExceptionSE
      次で指定:
      クラス AbstractTemplateViewrenderMergedTemplateModel 
      例外:
      ExceptionSE