To create updatable data view we can use sample XTemplate mechanisms which are available in the Ext.Component base class. Such a representation maybe useful to give a user preview of an element from the public site, e.g. if you have some product information or advertisement banners which are configured from back office system.

I would not suggest to use this method instead of standard ExtJs elements. IMHO using different frameworks, technologies in the same project must be minimized as much as possible if you do not want to get “Frankenstein’s monster” during the time.

In the following sample I have moved the template to separate file to separate the sheeps from the goats. You can also load clean template files using AJAX request as it is describe in the blog of Marcus Schiesser in this case you will not violate DRY principle.