Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Jerry Relunia
17,148 Pointsnot sure if blog.jade file is correct, I keep getting a syntax error
here is the error: SyntaxError: Unexpected token (1:18) at Parser.pp.raise (c:\Users\Jerry\treehouse\projects\express-basics\node_modules\with\node_modules\acorn\dist\acorn.js:1745:13)
my blog.jade file
extends ./layout.jade
block content
each post in posts
h1 #{post.title}
p #{post.description}
on my app.js file here is the code for the blog route:
if (title === undefined) { // if no paramater for /blog/:title
res.status(503); //set status code from default 200(ok) to 503 (
res.render('blog', { posts: postsLists});
}