examples/jquery-tmpl/assets/scripts/jquery.tmpl.js
function( elem ) {
			var tmplItem;
			if ( elem instanceof jQuery ) {
				elem = elem[0];
			}
			while ( elem && elem.nodeType === 1 && !(tmplItem = jQuery.data( elem, "tmplItem" )) && (elem = elem.parentNode) ) {}
			return tmplItem || topTmplItem;
		}
function( elem ) {
			var tmplItem;
			if ( elem instanceof jQuery ) {
				elem = elem[0];
			}
			while ( elem && elem.nodeType === 1 && !(tmplItem = jQuery.data( elem, "tmplItem" )) && (elem = elem.parentNode) ) {}
			return tmplItem || topTmplItem;
		}
function ( elem ) { var tmplItem ; if ( elem instanceof jQuery ) { elem = elem [ 0 ] ; } while ( elem && elem . nodeType === 1 && ! ( tmplItem = jQuery . data ( elem , "tmplItem" ) ) && ( elem = elem . parentNode ) ) { } return tmplItem || topTmplItem ; }
Return rendered template item for an element.
Return rendered template item for an element .