Hi,
When I add any comments in my js using volt, the next block of js code is also commented out and I get javascript errors.
So for example the following .volt file
<html>
<head>
<script>
//this function alert to the screen hello world
function hello() {
alert("hello world!");
}
</script>
</head>
<body>
<button onclick="hello();">Click Me</button>
</body>
</html>
Is rendered as:
<html>
<head>
<script>
//this function alert to the screen hello world
// function hello() {
// alert("hello world!");
// }
</script>
</head>
<body>
<button onclick="hello();">Click Me</button>
</body>
</html>
Any tips on how to resolve would be appreciated. (As a workaround I can remove the comments for now, but when I integrate any 3rd party plugins eg. paypal / stripe, I am going to have problems).
Thanks