code: function generateRenderFunc(renderFunc) {
          return function () {
              var res = null
              try {
                  res = renderFunc.apply(this)
              } catch (e) {
                  res = React.DOM.div.apply(this, [{style: {color: 'red'}}, 'Exception:' + e.message])
              }
              return React.DOM.div.apply(this, _.flatten([
                  {key: 'result'},
                  res
              ]))
          }
      }
docs: function generateTemplateFunction(code) { try { var defineMap = {'react/addons': React, lodash: _}; var define = function (requirementsNames, content) { var requirements = _.map(requirementsNames, function (reqName) { return defineMap[reqName]; }); return content.apply(this, requirements); }; /*eslint no-eval:0 var res = eval(code); return res; } catch (e) { console.log(e); return emptyFunc; } }