file - Use external XTemplate in Sencha Touch 2 -


i need use external file content xtemplate.

basically, want use external file no "strange" solution, use "xtemplate.from", or put xtemplate objects in variables. this:

list.html

<div>name: #{object.name} </div> 

file.js

... content = ext.create('ext.panel.panel', {     fullscreen: true,     scroll: 'vertical',     data : planetearth,     tpl: "index.html" }); ... 

basically, once define file tpl, should compiled automatically.

any idea? thanks!

it seems article guides want do:

http://www.sencha.com/learn/xtemplates-part-ii/


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -