blog-static/layouts/shortcodes/bergamot_widget.html
Danila Fedorin d7d7254a7b Extract loading and closing bergamot into a helper script.
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-12-27 23:30:16 -08:00

5 lines
176 B
HTML

<div id="{{ .Get "id" }}"></div>
<script>
window.Bergamot.run(null, '{{ .Get "id" }}', '{{ .Get "prompt" }}', '{{ .Inner }}', renderRules, '{{ .Get "query" }}');
</script>