code: function (file) {
          var extname = path.extname(file);
          var id = file.replace(this.base + '/', '').replace(extname, '');
          return id;
      }
docs: 路径转换为模板 ID base: /Users/tangbin/Documents/web/tpl file: /Users/tangbin/Documents/web/tpl/index/main.html >>>>> index/main