Created
September 14, 2011 20:12
-
-
Save ekryski/1217644 to your computer and use it in GitHub Desktop.
Jade Layout error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Code | |
app.get('/admin', function(req, res){ | |
res.locals({'title': 'TLF - Admin'}); | |
res.render('admin', {layout: 'Admin/layout'}); | |
}); | |
//Error | |
SyntaxError: Unexpected identifier | |
at Object.Function (unknown source) | |
at Object.compile (/Users/ericKryski/Desktop/Development/Web/tlf/node_modules/jade/lib/jade.js:177:10) | |
at Function.compile (/Users/ericKryski/Desktop/Development/Web/tlf/node_modules/express/lib/view.js:65:33) | |
at ServerResponse._render (/Users/ericKryski/Desktop/Development/Web/tlf/node_modules/express/lib/view.js:414:18) | |
at ServerResponse.render (/Users/ericKryski/Desktop/Development/Web/tlf/node_modules/express/lib/view.js:315:17) | |
at ServerResponse._render (/Users/ericKryski/Desktop/Development/Web/tlf/node_modules/express/lib/view.js:429:10) | |
at ServerResponse.render (/Users/ericKryski/Desktop/Development/Web/tlf/node_modules/express/lib/view.js:315:17) | |
at /Users/ericKryski/Desktop/Development/Web/tlf/controllers/admin.js:3:6 | |
at callbacks (/Users/ericKryski/Desktop/Development/Web/tlf/node_modules/express/lib/router/index.js:272:11) | |
at param (/Users/ericKryski/Desktop/Development/Web/tlf/node_modules/express/lib/router/index.js:246:11) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment