MCPcopy Create free account
hub / github.com/BorisMoore/jquery-tmpl / tiWrap

Function tiWrap

jquery.tmpl.js:468–474  ·  view source on GitHub ↗
( call, wrapped )

Source from the content-addressed store, hash-verified

466 }
467
468 function tiWrap( call, wrapped ) {
469 // nested template, using {{wrap}} tag
470 var options = call.options || {};
471 options.wrapped = wrapped;
472 // Apply the template, which may incorporate wrapped content,
473 return jQuery.tmpl( jQuery.template( call.tmpl ), call.data, options, call.item );
474 }
475
476 function tiHtml( filter, textOnly ) {
477 var wrapped = this._wrap;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected