{{define "components/editor"}}
<section class="section">
  <container class="container is-max-desktop">
    <div id="editor">{{.Content}}</div>
  </container>
</section>
<script>
function setEditor(){
  var editor = ace.edit("editor");
  editor.setTheme("ace/theme/monokai");
  editor.session.setMode("ace/mode/json");
  editor.setReadOnly(true); 
}
</script>
{{end}}