javascript - loading external TPL file to JST -


I am trying to load a TPL file content for JST ["App / Index"]

  loadTemplates: function (view, callback) {var deferreds = []; $ Kiic (see, function (index, VA) {deferreds.push ($. Get ( 'tpl /' + Visual + '. Html', function (data) {window [ 'JST'] [ "App / Index" ] = Data;}, 'html'));}); $ .When.apply (empty, adjourned) .Done (callback); }  

The Chrome Inspector shows that TPL files are being loaded, but the spinal cord visualization can not access the JST template.

Try this:

  loadTemplates: function (view, callback) {Var deferreds = []; $ Kiisi (see function (Index View) {Defreded Pius ($. ( 'Tipl /' + Visual + '. Html', function (data) {if (window [ 'JST'] === null 0) {Window ['jst'] = {};} window ['jst'] ["ap / index"] = data;}, 'html'))}); $ .When.apply (empty, adjourned) .Done (callback); }  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -