renderString(template, data) {
    if (!template) {
      return '';
    }
    // Interpolate the template and populate
    return this.interpolate(template, data);
  }
Render a template string into html.
@param {string} template - The template to render.
@param {object} data - The data to provide to the template.
@returns {HTMLElement | string} - The created element or an empty string if template is not specified.