Uexpected token'tag'jade node.js
我得到:
Unexpected token 'tag' expected 'text', 'code', ':', 'newline' or 'eos'
由于这个代码:
label(for="polaziste")Polaziste
在
#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)
为什么? 🙂
尝试这个:
label(for="polaziste") Polaziste
注意Polaziste之前的空间。
对于其他人访问,错误也(预期)出现错误地使用玉API。
每个文档
var fn = jade.compile('string of jade', options);
不过,如果你不小心把这个解释为
var fn = jade.compile('/path/to/file.jade', options);
你会有问题。 🙂