I need to output plain text in a jade layout (using express) and I need it to appear on separate lines like so -
Hello
There
World"0"
World"1"
World"2"
I would have thought I could do it like this - (jade template coming up)
|Hello
|There
- for (var i=0; i<3; i++)
|World"#{i}"
But instead this gives me
Hello
ThereWorld"0"World"1"World"2"
For the life of me, I cannot understand how to do a line break within a conditional loop! This is not meant to be HTML text, its plain text for CSV binary output, so the breaks are important and so are the double quotes as well as the escaping to prevent tags.
Is it not possible to do this in Jade? I don't have much experience in Jade, so I'd appreciate any help at all from the experts out there. Thanks!