Results 1 to 2 of 2

Thread: Utility for maintaining XTemplates in xml files and integrating into your app

  1. #1
    Sencha User
    Join Date
    Dec 2011

    Default Utility for maintaining XTemplates in xml files and integrating into your app

    Hi all,

    One of the things I have struggled with is how to edit and manage XTemplates. I use Architect in some projects to handle this, but am not thrilled with its editor. Overall I really like Webstorm, esp. with the new sencha plugin, but the XTemplate editing situation is not good there either.

    So, I created a utility that will allow you to maintain some/all/none of your xtemplates in xml files external to your views. This allows me to use the xml editing and formatting capabilities of Webstorm which is ideal.

    See here:

    I have integrated this into the Sencha Cmd build process such that the xml files get concatenated and converted into a single javascript file at build time (via a python script). The resulting javascript file contains string variables representing each of your xtemplates, and in your views, you can simply assign these variables to the tpl property of a container, etc.

    Once set up, you can simply edit your xml xtemplate files and the edits automatically get propogated to the views at build and run time.

    I find this is especially helpful with large templates. I still tend to keep my smaller templates as strings inside my views.

    Hope this is of benefit to you all.

  2. #2
    Sencha User
    Join Date
    Feb 2013


    Cool! Thanks for sharing your work with the community!

Similar Threads

  1. Maintaining state in Ext 4
    By Andy.Monis in forum Ext: Discussion
    Replies: 0
    Last Post: 8 Mar 2011, 1:30 AM
  2. Question about integrating XDS files in a MDSD workflow
    By quixit in forum Ext Designer: Help & Discussion
    Replies: 2
    Last Post: 15 Aug 2010, 11:14 PM
  3. Is there any log utility in ext?
    By yew98 in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 8 Nov 2007, 10:37 PM
  4. about Ext-yui XHR utility
    By mysticav in forum Ext 1.x: Help & Discussion
    Replies: 8
    Last Post: 23 Mar 2007, 11:20 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts