vanilla-hugo/layouts/partials/bergamotpreset.html

12 lines
397 B
HTML
Raw Normal View History

2024-09-15 16:39:00 -07:00
<script>
window.addEventListener('load', function() {
window.Bergamot.presets['{{ .name }}'] = {
rules: {{ .file }},
inputModes: {{ partial "bergamotparseinputmodes.js" .modes | safeJS }},
2024-09-15 16:39:00 -07:00
inputPrompt: '{{ .prompt }}',
query: '{{ .query }}',
renderPreset: '{{ default "default" .renderPreset }}'
};
});
</script>