You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, that warning is correct because line 7 is !{ content }. The warning is because !{} and #{} are for interpolation within text. i.e. you have to be in text to start with. You should use = and != to buffer JavaScript expressions (see http://jade-lang.com/reference/code/):
doctype html
html
head
body
#contentblockcontent!= content
doctype html
html
head
body
#contentblockcontent= content
Alternatively, put the interpolation inside plain-text.
doctype html
html
head
body
#contentblockcontent
| !{ content }
doctype html
html
head
body
#contentblockcontent
| #{ content }
I get the warning when
content
is a HTML content.The text was updated successfully, but these errors were encountered: