title: ExtJS 4.2.1 XTemplate and subtemplates (statics)
body: <p>I got a custom <code>Ext.Component</code> with a view <code>XTemplates</code>. I do need some of theese Templates outside of the view in my controller too.</p>
  
  <p>Is it possible to refer to static members in functions of a <code>XTemplate</code>. Or is there another much better way???</p>
  
  <p>something like this:</p>
  
  <pre><code>Ext.define('app.view.ApplicationHeader', {
      extend: 'Ext.Component',
      name: 'app-header',
      xtype: 'app-header',
  
      height: 67,
      margin: 0,
  
      statics: {
          mainIconTpl: new Ext.XTemplate('someTemplate'),
  
          navigationItemsTpl: new Ext.XTemplate( 'anotherTemplate'),
  
          userInfoTpl: new Ext.XTemplate('userTemplate')
      },
  
      html: new Ext.XTemplate('... {[ this.renderMainIcons() ]} {[ this.renderUserInfo() ]} ...',
              '... {[ this.renderNavigationBarItems() ]} ...',
              {
                  me: this,
                  renderMainIcons: function () {
                      return view.static.mainIconTpl.apply(MR.Sitemap.Items);
                  },
                  renderUserInfo: function () {
                      return view.static.userInfoTpl.apply();
                  },
                  renderNavigationBarItems: function () {
                      return view.static.navigationItemsTpl.apply();
                  }
              }).apply()   
  });
  </code></pre>
  
  <p>i also dont know how i could apply subtemplates which are members of the view. I declared them global right know which i really dont like to do.</p>
  
  <p>please! </p>