code: function (tpl) {
              var root = this.parse(tpl);
              variableId = 0;
              return gen.genFunction(root.statements, true);
          }
docs: get template function json format
  @param {String} tpl
  @return {Object}