I'm making an Express based web application and everytime someone visits this jade file i get the following error:
Warning: missing space before text for line 28 of jade file "C:\x\app\view s\login.jade"
It also spits it out a few times for each line it happens on.
I took a look at these lines and I can not figure out what it's complaining about.
My jade file is as follows:
doctype html html head meta(charset='utf-8') link(href='style.css', rel='stylesheet') body .wrapper header.header a(href="/", style="color: #000000;") h1(style="position: absolute; top: 30px;") Hello .middle .container main.stream p Login main.name form(id="login", method="POST", action="/login") table(cellspacing="15") tr td Email td input(type='email', name='email' style="width: 250; height: 18px; border: 1px solid #999999; padding: 5px;") tr td Password td input(type='password', name='password' style="width: 250; height: 18px; border: 1px solid #999999; padding: 5px;") tr td input(style="width:75px;height:30px;", type="submit", value="Login") aside.left-sidebar main.dir a(href="/") Home main.dir a(href="/signup") Register footer.footer h3 Hello p This is a footer
In Jade use | when start with only text
wrong ->
td {{anything}} br Hello
correct ->
td | {{anything}} br | Hello
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