Hi, i have a shortcode shortcode.html. Is there any magic trick use the Hugo variable $test in the script tag in that shortcode like so:
{{ $test := "Hello World" }}
<script>
window.addEventListener("load", (event) => {
console.log( {{ $test }} );
});
</script>
{{/* other shortcode stuff */ -}}
Any tips welcome
best regards carsten