code: function compile(options) {
      options = options || {};
      var fs = require('fs');
      var content = fs.readFileSync(options.indexFile || INDEX_FILE, 'utf8');
      // 插入同步数据的注入点
      content = content.replace('</head>', '<script>window.__rebas__ = ${rebas}</script>\n</head>');
  
      var etpl = require('etpl');
      etpl = new etpl.Engine({defaultFilter: 'raw'});
      return etpl.compile(content);
  }
docs: 模版编译
  
  @inner
  @param {Object=} options 配置项
  @param {string=} options.indexFile 首页模版
  @return {Function}