"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var REGEX = /\{\{(\d+)\}\}/g;

var _default = function _default(s, t) {
  if (!s) {
    return {
      markup: ''
    };
  }

  var markup = s.replace(REGEX, function (match, g) {
    return "<span data-component=\"".concat(t, "\" data-id=\"").concat(g, "\"></span>");
  });
  return {
    markup: markup
  };
};

exports["default"] = _default;
//# sourceMappingURL=componentize.js.map