function render(event) {
    event.preventDefault()
    var data
    try {
      data = JSON.parse(dataInput.value)
    } catch (e) {
      renderError('JSON parsing failed', e)
      return
    }
    try {
      resultNode.innerHTML = tmpl(templateInput.value, data)
    } catch (e) {
      renderError('Template rendering failed', e)
    }
  }
Renders the templating result

@param {event} event Click event