lib/packages/core-classes.js
function(template, previous_template, index) {

		Firestorm.DOM.insertHTMLAfter(this._getEndElement(previous_template), template.render());
		template.broadcastInDOM();

		var previous_index = this._current_templates.indexOf(previous_template);
		if (Lava.schema.DEBUG && previous_index == -1) Lava.t();
		this._current_templates.splice(previous_index + 1, 0, template);

	}
function(template, previous_template, index) {

		Firestorm.DOM.insertHTMLAfter(this._getEndElement(previous_template), template.render());
		template.broadcastInDOM();

		var previous_index = this._current_templates.indexOf(previous_template);
		if (Lava.schema.DEBUG && previous_index == -1) Lava.t();
		this._current_templates.splice(previous_index + 1, 0, template);

	}
function ( template , previous_template , index ) { Firestorm . DOM . insertHTMLAfter ( this . _getEndElement ( previous_template ) , template . render ( ) ) ; template . broadcastInDOM ( ) ; var previous_index = this . _current_templates . indexOf ( previous_template ) ; if ( Lava . schema . DEBUG && previous_index == - 1 ) Lava . t ( ) ; this . _current_templates . splice ( previous_index + 1 , 0 , template ) ; }
Insert template into DOM
@param {Lava.system.Template} template
@param {Lava.system.Template} previous_template
@param {number} index Index of this template in list of all active templates
Insert template into DOM