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