code: function () {
          var options = this.options;
          var template;
  
          switch (String(options.syntax)) {
              case 'native':
                  template = require('./syntax/native.js');
                  break;
  
              case 'simple':
                  template = require('./syntax/simple.js');
                  break;
  
              // 不再推荐使用动态加载自定义语法
              // 为了兼容 < v1.0 的功能
              default:
  
                  var syntaxFile = path.resolve(this.base, options.syntax);
  
                  if (fs.existsSync(syntaxFile)) {
  
                      template = require('./syntax/native.js');
  
                      var syntaxCode = fs.readFileSync(syntaxFile, 'utf-8');
  
                      vm.runInNewContext(syntaxCode, {
                          console: console,
                          template: template
                      });
  
                  } else {
  
                      this.log('[red]Not found: ' + syntaxFile + '[/red]');
                      process.exit(1);
  
                  }
          }
  
  
          // 配置模板引擎：辅助方法
          if (options.helpers) {
  
              var helpersFile = path.resolve(this.base, options.helpers);
  
              if (fs.existsSync(helpersFile)) {
  
                  this._helpersCode = fs.readFileSync(helpersFile, 'utf-8');
                  vm.runInNewContext(this._helpersCode, {
                      console: console,
                      template: template
                  });
  
              } else {
  
                  this.log('[red]Not found: ' + helpersFile + '[/red]');
                  process.exit(1);
  
              }
          }
  
  
          this.template = AOTcompile(template);
  
      }
docs: 初始化模板引擎