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