Putting ExtJS templates in separate files
To create a template in ExtJS you usually have to put the template code inline in your javascript. That could lead to problems if you want to edit your code and the designer wants to change the template. Therefore it’s a good idea to put the template in a separate file. For that reason I built this loader singleton that is capable of lazy loading ExtJS templates: Ext.ns('templates'); templates.Loader = function(){ var that = {}; var map = {}; that....