function compile(data) {
  const {classes} = data
  const timeClass = classes[data.suffix ? 'timeWithSuffix' : 'time']
  let html = `<span class="${timeClass}">${data.time}</span>`
  if (data.suffix) {
    html += `<span class="${classes.time}">${data.suffix}</span>`
  }
  return html
}
Returns compiled template. Some template engine should be used in production
use case.

@param {Object} data
@return {String}