You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am a complete newbie to jade/pug... Trying to add bootstrap to pug
i copied pug-bootstrap folder inside my views folder
changed my index.pug as follows
extends ./pug-bootstrap/_bootstrap
block body
h1 Put your own body content here
I am getting this error when i load my index page
D:\Workspace\NodeJs\for_delete\views\pug-bootstrap\components\tabs.pug:11:13 9| if (index === active) 10| li.active > 11| a(href=`#tab${item}`,role="tab",data-toggle="tab")= item --------------------^ 12| else 13| li 14| a(href=`#tab${item}`,role="tab",data-toggle="tab")= item Syntax Error: Unexpected character '`'
Error: D:\Workspace\NodeJs\for_delete\views\pug-bootstrap\components\tabs.pug:11:13
9| if (index === active)
10| li.active
> 11| a(href=`#tab${item}`,role="tab",data-toggle="tab")= item
--------------------^
12| else
13| li
14| a(href=`#tab${item}`,role="tab",data-toggle="tab")= item
Syntax Error: Unexpected character '`'
at makeError (D:\Workspace\NodeJs\for_delete\node_modules\pug-error\index.js:32:13)
at Lexer.error (D:\Workspace\NodeJs\for_delete\node_modules\pug-lexer\index.js:58:15)
at Lexer.assertExpression (D:\Workspace\NodeJs\for_delete\node_modules\pug-lexer\index.js:86:12)
at Lexer.attrs (D:\Workspace\NodeJs\for_delete\node_modules\pug-lexer\index.js:1089:18)
at Lexer.callLexerFunction (D:\Workspace\NodeJs\for_delete\node_modules\pug-lexer\index.js:1319:23)
at Lexer.advance (D:\Workspace\NodeJs\for_delete\node_modules\pug-lexer\index.js:1356:15)
at Lexer.callLexerFunction (D:\Workspace\NodeJs\for_delete\node_modules\pug-lexer\index.js:1319:23)
at Lexer.getTokens (D:\Workspace\NodeJs\for_delete\node_modules\pug-lexer\index.js:1375:12)
at lex (D:\Workspace\NodeJs\for_delete\node_modules\pug-lexer\index.js:12:42)
at Object.lex (D:\Workspace\NodeJs\for_delete\node_modules\pug\lib\index.js:99:27)
is it because you are using "pug": "^2.0.0-beta3" and i am using "pug": "^2.0.0-rc.3",
The text was updated successfully, but these errors were encountered:
I am a complete newbie to jade/pug... Trying to add bootstrap to pug
i copied pug-bootstrap folder inside my views folder
changed my index.pug as follows
I am getting this error when i load my index page
is it because you are using "pug": "^2.0.0-beta3" and i am using "pug": "^2.0.0-rc.3",
The text was updated successfully, but these errors were encountered: