已经改成pug了,怎么还是不行?
照着老师的敲的,只是把jade改成了pug,运行起来,浏览器里这样:
Error: D:\NodejsWrok\imooc\views\detail.pug:4:13
2| html
3| head
> 4| meta{charset = 'utf-8'}
-------------------^
5| title #{title}
6| body
7| h1 #{title}
unexpected text "{char"
at makeError (D:\NodejsWrok\node_modules\pug-error\index.js:32:13)
at Lexer.error (D:\NodejsWrok\node_modules\pug-lexer\index.js:58:15)
at Lexer.fail (D:\NodejsWrok\node_modules\pug-lexer\index.js:1304:10)
at Lexer.advance (D:\NodejsWrok\node_modules\pug-lexer\index.js:1364:15)
at Lexer.callLexerFunction (D:\NodejsWrok\node_modules\pug-lexer\index.js:1319:23)
at Lexer.getTokens (D:\NodejsWrok\node_modules\pug-lexer\index.js:1375:12)
at lex (D:\NodejsWrok\node_modules\pug-lexer\index.js:12:42)
at Object.lex (D:\NodejsWrok\node_modules\pug\lib\index.js:99:27)
at Function.loadString [as string] (D:\NodejsWrok\node_modules\pug-load\index.js:44:24)
at compileBody (D:\NodejsWrok\node_modules\pug\lib\index.js:86:18)