public void addPartial(final String key, final String name) {
    """
	Add new partials mapping to the view.
	
	@param key Partial name.
	@param name Partial path.
    """
		notNull(key);
		notNull(name);

		View view = this.getView();
		if (view != null && view instanceof MustacheView) {
			// First try to not pollute view model object
			final MustacheView mustacheView = (MustacheView) view;
			mustacheView.addAlias(key, name);
		} else {
			// Otherwise, add partials to model object
			final Map<String, String> currentPartials = getPartials();
			currentPartials.put(key, name);
			super.addObject(MustacheSettings.PARTIALS_KEY, currentPartials);
		}
	}
public void addPartial(final String key, final String name) {
		notNull(key);
		notNull(name);

		View view = this.getView();
		if (view != null && view instanceof MustacheView) {
			// First try to not pollute view model object
			final MustacheView mustacheView = (MustacheView) view;
			mustacheView.addAlias(key, name);
		} else {
			// Otherwise, add partials to model object
			final Map<String, String> currentPartials = getPartials();
			currentPartials.put(key, name);
			super.addObject(MustacheSettings.PARTIALS_KEY, currentPartials);
		}
	}
public void addPartial ( final String key , final String name ) { notNull ( key ) ; notNull ( name ) ; View view = this . getView ( ) ; if ( view != null && view instanceof MustacheView ) { // First try to not pollute view model object final MustacheView mustacheView = ( MustacheView ) view ; mustacheView . addAlias ( key , name ) ; } else { // Otherwise, add partials to model object final Map < String , String > currentPartials = getPartials ( ) ; currentPartials . put ( key , name ) ; super . addObject ( MustacheSettings . PARTIALS_KEY , currentPartials ) ; } }
Add new partials mapping to the view.

@param key Partial name.
@param name Partial path.
Add new partials mapping to the view .