code: function (widgetName, param, moduleName) {
        needBeauty = false;
        return loadWidget(widgetName, param, moduleName, function (widgetPath, widgetContent, widget) {
          var testDataFile = path.join(widgetPath, 'custom_data.json');
          var compiledTpl = new jSmart(widgetContent);
          var testData = Util.readJsonFile(testDataFile);
          widget.widgetType = 'floor';
          if (_.isEmpty(testData)) {
            gutil.log(gutil.colors.red('测试数据为空！请检查custom_data.json文件！'));
            return widgetContent;
          }
          // 测试数据预置变量
          testData.portal_floor_id = 0;
          testData.portal_cell_id = 0;
          widgetContent = compiledTpl.fetch(testData);
          return widgetContent;
        });
      }
docs: 加载楼层组件使用smarty语法编译