javascript - Line Breaks Inside Jade Templates -
i looking around solution include line break inside title. normal fixes include actual line break inside code...
<div title="ron swanson"></div>
or use 
in place of new line, so...
<div title="ron 
swanson"></div>
these solutions work fine, since i'm using jade templating engine, can't include line break inside code...
.title(title="ron swanson")
--or--
.title(title="ron\ swanson")
without \
throws syntax error, , doesn't insert line break. `.title(title="ron
swanson") prints out characters literally.
what correct way of including line breaks in jade templates?
i found out can use \n
represent new line (just javascript string). doing work...
.title(title="ron\nswanson")
Comments
Post a Comment