code: function XTemplate(tpl, config) {
    var tplType = (typeof tpl);
    if (tplType !== 'string' && tplType !== 'function') {
      config = tpl;
      tpl = undefined;
    }
    config = this.config = util.merge(XTemplate.globalConfig, config);
    if (tplType === 'string') {
      try {
        tpl = this.compile(tpl, config.name);
      } catch (err) {
        this.compileError = err;
      }
    }
    XTemplateRuntime.call(this, tpl, config);
  }
docs: xtemplate engine
  
  @example
  modulex.use('xtemplate', function(XTemplate){
  document.writeln(new XTemplate('{{title}}').render({title:2}));
  });
  
  @class XTemplate
  @extends XTemplate.Runtime