In my Jade template, I'm trying to make an array like so:
- var myArray = [
'one',
'two',
'three'
]
But it doesn't compile. Anyone know why? Being able to have a multi-line array that I can use as a mixin argument would make my code much less verbose.
- myArray = ['one']
- myArray.push('two')
- myArray.push('three')
If you wanna.
You can use block code:
-
var myArray = [
"one",
"two",
"three"
]
each row, index in myArray
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