1$(document).ready(function () { 2 // towls object 3 if ( typeof window.towls !== "object" ) { 4 window.towls = {} 5 } 6 // underscore template 7 window.towls.getTemplate = function(templatePath,callback) { 8 let tmpl_url = templatePath; 9 $.ajax({ 10 url: tmpl_url, 11 async: false, 12 contentType: 'text', 13 success: function (data) { 14 callback(data); 15 } 16 }); 17 // USE FUNC 18 // let demoTemp; 19 // towls.getTemplate('/template/js-tpl/__demoTemp.html', function(i){ 20 // demoTemp = _.template(i); 21 // }); 22 }; 23});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.