public void addPartials(final Map<String, String> partials) {
		notNull(partials);

		View view = this.getView();
		if (view != null && view instanceof MustacheView) {
			// First try to not pollute model object
			final MustacheView mustacheView = (MustacheView) view;
			mustacheView.addAliases(partials);
		} else {
			// Otherwise, add partials to model object
			final Map<String, String> currentPartials = getPartials();
			for (Map.Entry<String, String> entry : partials.entrySet()) {
				notNull(entry.getKey());
				notNull(entry.getValue());
				currentPartials.put(entry.getKey(), entry.getValue());
			}
			super.addObject(MustacheSettings.PARTIALS_KEY, currentPartials);
		}
	}
public void addPartials(final Map<String, String> partials) {
		notNull(partials);

		View view = this.getView();
		if (view != null && view instanceof MustacheView) {
			
			final MustacheView mustacheView = (MustacheView) view;
			mustacheView.addAliases(partials);
		} else {
			
			final Map<String, String> currentPartials = getPartials();
			for (Map.Entry<String, String> entry : partials.entrySet()) {
				notNull(entry.getKey());
				notNull(entry.getValue());
				currentPartials.put(entry.getKey(), entry.getValue());
			}
			super.addObject(MustacheSettings.PARTIALS_KEY, currentPartials);
		}
	}
public void addPartials ( final Map < String , String > partials ) { notNull ( partials ) ; View view = this . getView ( ) ; if ( view != null && view instanceof MustacheView ) { // First try to not pollute model object final MustacheView mustacheView = ( MustacheView ) view ; mustacheView . addAliases ( partials ) ; } else { // Otherwise, add partials to model object final Map < String , String > currentPartials = getPartials ( ) ; for ( Map . Entry < String , String > entry : partials . entrySet ( ) ) { notNull ( entry . getKey ( ) ) ; notNull ( entry . getValue ( ) ) ; currentPartials . put ( entry . getKey ( ) , entry . getValue ( ) ) ; } super . addObject ( MustacheSettings . PARTIALS_KEY , currentPartials ) ; } }
Add new partials mapping to the view.

@param partials Partials.
Add new partials mapping to the view .