lib/conbo.js
function()
	{
		var template = this.template;
		
		if (!!this.templateUrl)
		{
			this.loadTemplate();
		}
		else
		{
			if (conbo.isFunction(template))
			{
				template = template(this);
			}
			
			var el = this.el;
			
			if (conbo.isString(template))
			{
				el.innerHTML = this.__parseTemplate(template);
			}
			else if (/{{(.+?)}}/.test(el.textContent))
			{
				el.innerHTML = this.__parseTemplate(el.innerHTML);
			}
			
			this.__initView();
		}
		
		return this;
	}
function()
	{
		var template = this.template;
		
		if (!!this.templateUrl)
		{
			this.loadTemplate();
		}
		else
		{
			if (conbo.isFunction(template))
			{
				template = template(this);
			}
			
			var el = this.el;
			
			if (conbo.isString(template))
			{
				el.innerHTML = this.__parseTemplate(template);
			}
			else if (/{{(.+?)}}/.test(el.textContent))
			{
				el.innerHTML = this.__parseTemplate(el.innerHTML);
			}
			
			this.__initView();
		}
		
		return this;
	}
function ( ) { var template = this . template ; if ( ! ! this . templateUrl ) { this . loadTemplate ( ) ; } else { if ( conbo . isFunction ( template ) ) { template = template ( this ) ; } var el = this . el ; if ( conbo . isString ( template ) ) { el . innerHTML = this . __parseTemplate ( template ) ; } else if ( / {{(.+?)}} / . test ( el . textContent ) ) { el . innerHTML = this . __parseTemplate ( el . innerHTML ) ; } this . __initView ( ) ; } return this ; }
Initialize the View's template, either by loading the templateUrl
or using the contents of the template property, if either exist
@returns	{this}
Initialize the View s template either by loading the templateUrl or using the contents of the template property if either exist