I need to know how to split into lines objects / arrays in jade.
This works fine:
object = [{foo: bar, bar:foo},{foo: bar, bar:foo},{foo: bar, bar:foo}]
This doesn't:
object = [
{foo: bar, bar:foo},
{foo: bar, bar:foo},
{foo: bar, bar:foo}
]
This doesn't either:
- object = [
- {foo: bar, bar:foo},
- {foo: bar, bar:foo},
- {foo: bar, bar:foo}
- ]
Documentation on pug site says that this should work (keep track of the white spaces) :
-
var object = [
{foo: bar, bar:foo},
{foo: bar, bar:foo},
{foo: bar, bar:foo}
]
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