nl_tokens: Defines the default template loader . Accepts a selector string and returns the template node ( usually a <script > or <template > node ) in a jQuery wrapper .
pl_tokens: function loadTemplate ( templateProperty ) { var $template ; try { $template = $ ( templateProperty ) ; // If the template is not in the DOM, treat the template property as a raw template string instead. That // part is handled in `catch`, and should not be guarded against further errors here. To switch to that // process, just throw an error. if ( ! $ . contains ( document . documentElement , $template [ 0 ] ) ) throw new Error ( ) ; } catch ( <mask> ) { $template = _wrapRawTemplate ( templateProperty ) ; // If the template string cannot be retrieved unaltered even after wrapping it in a script tag, bail out by // throwing a silent error (will be caught, and not propagated further, in _createTemplateCache()). if ( $template . html ( ) !== templateProperty ) throw new Error ( "Failed to wrap template string in script tag without altering it" ) ; } return $template ; }