docs: function resolveVariables (template, record) {
      // if template is not string return empty string
      if (typeof template !== 'string') {
          return ''
      }
      // replace all variables with interpolated value
      return template.replace(/\$\{[^}]+\}/g, function (match) {
          return resolveVariable(match, record)
      })
  }