@Bean
	public MustacheViewResolver mustacheViewResolver() {
		String prefix = getPrefix();
		String suffix = getSuffix();
		int order = getOrder();
		boolean cache = getCache();
		String[] viewNames = getViewNames();
		String defaultLayout = getDefaultLayout();
		String layoutKey = getLayoutKey();
		Map<String, String> mappings = getLayoutMappings();

		log.info("Create mustache view resolver");
		log.trace("  => Cache: {}", cache);
		log.trace("  => Prefix: {}", prefix);
		log.trace("  => Suffix: {}", suffix);
		log.trace("  => Order: {}", order);
		log.trace("  => View Names: {}", viewNames);
		log.trace("  => Default layout: {}", defaultLayout);
		log.trace("  => Layout key: {}", layoutKey);
		log.trace("  => Mappings: {}", mappings);

		MustacheViewResolver resolver = new MustacheViewResolver(mustacheCompiler);
		resolver.setCache(cache);
		resolver.setPrefix(prefix);
		resolver.setSuffix(suffix);
		resolver.setOrder(order);
		resolver.setViewNames(viewNames);
		resolver.setLayoutKey(layoutKey);

		if (defaultLayout != null && !defaultLayout.isEmpty()) {
			resolver.setDefaultLayout(defaultLayout);
		}

		if (!mappings.isEmpty()) {
			resolver.setLayoutMappings(mappings);
		}

		return resolver;
	}
@Bean
	public MustacheViewResolver mustacheViewResolver() {
		String prefix = getPrefix();
		String suffix = getSuffix();
		int order = getOrder();
		boolean cache = getCache();
		String[] viewNames = getViewNames();
		String defaultLayout = getDefaultLayout();
		String layoutKey = getLayoutKey();
		Map<String, String> mappings = getLayoutMappings();

		log.info("Create mustache view resolver");
		log.trace("  => Cache: {}", cache);
		log.trace("  => Prefix: {}", prefix);
		log.trace("  => Suffix: {}", suffix);
		log.trace("  => Order: {}", order);
		log.trace("  => View Names: {}", viewNames);
		log.trace("  => Default layout: {}", defaultLayout);
		log.trace("  => Layout key: {}", layoutKey);
		log.trace("  => Mappings: {}", mappings);

		MustacheViewResolver resolver = new MustacheViewResolver(mustacheCompiler);
		resolver.setCache(cache);
		resolver.setPrefix(prefix);
		resolver.setSuffix(suffix);
		resolver.setOrder(order);
		resolver.setViewNames(viewNames);
		resolver.setLayoutKey(layoutKey);

		if (defaultLayout != null && !defaultLayout.isEmpty()) {
			resolver.setDefaultLayout(defaultLayout);
		}

		if (!mappings.isEmpty()) {
			resolver.setLayoutMappings(mappings);
		}

		return resolver;
	}
@ Bean public MustacheViewResolver mustacheViewResolver ( ) { String prefix = getPrefix ( ) ; String suffix = getSuffix ( ) ; int order = getOrder ( ) ; boolean cache = getCache ( ) ; String [ ] viewNames = getViewNames ( ) ; String defaultLayout = getDefaultLayout ( ) ; String layoutKey = getLayoutKey ( ) ; Map < String , String > mappings = getLayoutMappings ( ) ; log . info ( "Create mustache view resolver" ) ; log . trace ( "  => Cache: {}" , cache ) ; log . trace ( "  => Prefix: {}" , prefix ) ; log . trace ( "  => Suffix: {}" , suffix ) ; log . trace ( "  => Order: {}" , order ) ; log . trace ( "  => View Names: {}" , viewNames ) ; log . trace ( "  => Default layout: {}" , defaultLayout ) ; log . trace ( "  => Layout key: {}" , layoutKey ) ; log . trace ( "  => Mappings: {}" , mappings ) ; MustacheViewResolver resolver = new MustacheViewResolver ( mustacheCompiler ) ; resolver . setCache ( cache ) ; resolver . setPrefix ( prefix ) ; resolver . setSuffix ( suffix ) ; resolver . setOrder ( order ) ; resolver . setViewNames ( viewNames ) ; resolver . setLayoutKey ( layoutKey ) ; if ( defaultLayout != null && ! defaultLayout . isEmpty ( ) ) { resolver . setDefaultLayout ( defaultLayout ) ; } if ( ! mappings . isEmpty ( ) ) { resolver . setLayoutMappings ( mappings ) ; } return resolver ; }
Build mustache view resolver.
This view resolver needs an instance of {@link com.github.mjeanroy.springmvc.view.mustache.MustacheCompiler}
to be created.

@return Mustache view resolver instance.
Build mustache view resolver . This view resolver needs an instance of { @link com . github . mjeanroy . springmvc . view . mustache . MustacheCompiler } to be created .