meteor-jade
meteor-jade copied to clipboard
No support for multiline attributes
div(data-html='<p>First very long line</p>' +
'<p>Second very long line</p>' +
'<p class="warn">Third very long line</p>')
Produces only <div data-html="<p>First very long line</p>"></div>
.
I believe backslash is the way to break up long strings: Multiple Lines for Long Attribute Value in Jade
I think the syntax is official, since I've seen it output from an HTML to Jade converter.
Yes, converter uses backslash. But meteor jade compiler gives
Jade syntax error: Unexpected token
The backslash must be written inside the string – to escape the newline. The string is ended with a quotation mark only on the final line.
Neither \
, nor +
work here.