code: function common_end(params, configs) {
        params.code = params.code || configs.compiler.compile(params);
        if (typeof params.attach == "object") {
          for (var i in params.attach) {
            params.data[i] = params.attach[i];
          }
        } else if (typeof params.attach == "function") {
          var ret = params.attach(params.data);
          params.data = (ret) ? ret : params.data;
        }
        params.result = params.result || configs.compiler.run(params);
        /* execute end functions */
        for (var i in configs.end) {
          configs.end[i].call(configs, params);
        }
        return params.result;
      }
docs: /* compile code and execute end functions