2

我开始沿着节点的路径(在使用mongo教程滚动)开始我的旅程,并编写了以下玉文件

extends layout
block content
  h1= title
  form( method="post")
    div
      div
        span Title :
        input(type="text", name="title", id="editArticleTitle")
      div
        span Body :
        textarea(name="body", rows=20, id="editArticleBody)// <--- This line!
      div#editArticleSubmit
        input(type="submit", value="Send")

我从The end of the string was reached with no closing bracket found.玉字符解析器中出来。它归咎于上面代码中指向的行。我当然有可能错过了一个括号,但我没有看到它可能在哪里。

这是堆栈跟踪:

The end of the string was reached with no closing bracket found.
    at Function.parseMax (/home/me/Documents/node/blog/node_modules/jade/node_modules/character-parser/index.js:26:13)
    at Object.Lexer.bracketExpression (/home/me/Documents/node/blog/node_modules/jade/lib/lexer.js:138:33)
    at Object.Lexer.attrs (/home/me/Documents/node/blog/node_modules/jade/lib/lexer.js:524:24)
    at Object.Lexer.next (/home/me/Documents/node/blog/node_modules/jade/lib/lexer.js:788:15)
    at Object.Lexer.lookahead (/home/me/Documents/node/blog/node_modules/jade/lib/lexer.js:122:46)
    at Object.Parser.lookahead (/home/me/Documents/node/blog/node_modules/jade/lib/parser.js:116:23)
    at Object.Parser.parseTag (/home/me/Documents/node/blog/node_modules/jade/lib/parser.js:618:25)
    at Object.Parser.parseExpr (/home/me/Documents/node/blog/node_modules/jade/lib/parser.js:199:21)
    at Object.Parser.block (/home/me/Documents/node/blog/node_modules/jade/lib/parser.js:593:25)
    at Object.Parser.tag (/home/me/Documents/node/blog/node_modules/jade/lib/parser.js:722:26)
4

1 回答 1

4

天色已晚。我错过了结束语

于 2013-09-18T15:32:30.167 回答