12 lines
397 B
HTML
12 lines
397 B
HTML
<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>
|