<div class="livemark-table">
  <div id="{{ table.elem }}">
  </div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function(){
  const spec = JSON.parse('{{ table.spec }}')
  const elem = document.getElementById('{{ table.elem }}')
  new Handsontable(elem, spec)
});
</script>
