I want to write my pug array in multiple lines like this:
- var data = [
["1", "1.1"],
"2"
]
but pug doesnt allow it. I have to write it inline like this atm:
- var data = [["1", "1.1"], "2"]
Any idea? Thanks for help.
As suggested in https://github.com/pugjs/pug/issues/502#issuecomment-137893041
try this:
-
var data = [
["1", "1.1"],
"2"
]
Note that the -
is on a separate line.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With