blog-static/layouts/shortcodes/bergamot_widget.html

8 lines
239 B
HTML
Raw Normal View History

<div id="{{ .Get "id" }}"></div>
<script>
var app = Elm.Main.init({
node: document.getElementById('{{ .Get "id" }}'),
flags: { rules: '{{- strings.Trim .Inner " \n" -}}', query: '{{ .Get "query" }}' }
});
</script>