クラス MustacheView

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

public class MustacheView extends AbstractUrlBasedView
Mustache テンプレートエンジンを使用する Spring WebFlux View
導入:
2.0.0
作成者:
Brian Clozel
  • コンストラクターの詳細

    • MustacheView

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

    • setCompiler

      public void setCompiler(com.samskivert.mustache.Mustache.Compiler compiler)
      このビューで使用する JMustache コンパイラーを設定します。通常、このプロパティは直接設定されません。代わりに、Mustache テンプレートのコンパイルに使用される Spring アプリケーションコンテキストでは、単一の Mustache.Compiler が必要です。
      パラメーター:
      compiler - Mustache コンパイラー
    • setCharset

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

      public boolean checkResourceExists(LocaleSE locale) throws ExceptionSE
      次で指定:
      クラス AbstractUrlBasedViewcheckResourceExists 
      例外:
      ExceptionSE
    • renderInternal

      protected reactor.core.publisher.Mono<VoidSE> renderInternal(MapSE<StringSE,ObjectSE> model, MediaType contentType, ServerWebExchange exchange)
      次で指定:
      クラス AbstractViewrenderInternal