类 MustacheView

所有已实现的接口:
Aware, BeanNameAware, InitializingBean, ApplicationContextAware, ServletContextAware, View

public class MustacheView extends AbstractTemplateView
Spring MVC View using the Mustache template engine.
从以下版本开始:
2.0.0
作者:
Brian Clozel, Dave Syer, Phillip Webb
  • 构造器详细资料

    • MustacheView

      public MustacheView()
  • 方法详细资料

    • setCompiler

      public void setCompiler(com.samskivert.mustache.Mustache.Compiler compiler)
      Set the Mustache compiler to be used by this view.

      Typically this property is not set directly. Instead a single Mustache.Compiler is expected in the Spring application context which is used to compile Mustache templates.

      参数:
      compiler - the Mustache compiler
    • setCharset

      public void setCharset(String charset)
      Set the charset used for reading Mustache template files.
      参数:
      charset - the charset to use for reading template files
    • checkResource

      public boolean checkResource(Locale locale) throws Exception
      覆盖:
      checkResource 在类中 AbstractUrlBasedView
      抛出:
      Exception
    • renderMergedTemplateModel

      protected void renderMergedTemplateModel(Map<String,Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception
      指定者:
      renderMergedTemplateModel 在类中 AbstractTemplateView
      抛出:
      Exception