简体   繁体   中英

The end of the string was reached with no closing bracket found: NodeJS & Jade

I am beginning my journey down the path of node (following the rolling with mongo tutorial), and have written the following jade file

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")

I get The end of the string was reached with no closing bracket found. coming out of the jade character parser. It blames the line that is pointed to in the above code. It's certainly possible that I'm missing a bracket, but I'm not seeing where it might be.

Here's the stack trace:

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)

It was late. I was missing the closing quote

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM