Reputation: 4892
I get:
Unexpected token 'tag' expected 'text', 'code', ':', 'newline' or 'eos'
because of this code:
label(for="polaziste")Polaziste
in
#main
form(action="/raspored" method=post)
label(for="polaziste")Polaziste
input(type="list" id="polaziste")
datalist#polaziste
for pol,i in popis
option(value = pol)
Why? :)
Upvotes: 6
Views: 3995
Reputation: 1538
For others visiting, this error also (expectedly) appears when using the jade API incorrectly.
per the docs
var fn = jade.compile('string of jade', options);
however, if you accidentally interpret this as
var fn = jade.compile('/path/to/file.jade', options);
you will have issue. :)
Upvotes: 0
Reputation: 8427
Try this:
label(for="polaziste") Polaziste
Notice space before Polaziste.
Upvotes: 8