ericf / express-handlebars

A Handlebars view engine for Express which doesn't suck.
BSD 3-Clause "New" or "Revised" License
2.31k stars 384 forks source link

Problem with passport-steam and handlebars #210

Closed vladgal closed 7 years ago

vladgal commented 7 years ago

This is the error I trying to display user name Error: Parse error on line 36: ... <img src='{{user.photos[2].value}}' a -----------------------^ Expecting 'ID', got 'INVALID' at Parser.parseError (C:\Users\VladG\Desktop\Tutorials\Express Web\CSGOGamble\node_modules\handlebars\dist\cjs\handlebars\compiler\parser.js:267:1 9) at Parser.parse (C:\Users\VladG\Desktop\Tutorials\Express Web\CSGOGamble\node_modules\handlebars\dist\cjs\handlebars\compiler\parser.js:336:30) at HandlebarsEnvironment.parse (C:\Users\VladG\Desktop\Tutorials\Express Web\CSGOGamble\node_modules\handlebars\dist\cjs\handlebars\compiler\base. js:46:43) at compileInput (C:\Users\VladG\Desktop\Tutorials\Express Web\CSGOGamble\node_modules\handlebars\dist\cjs\handlebars\compiler\compiler.js:514:19) at ret (C:\Users\VladG\Desktop\Tutorials\Express Web\CSGOGamble\node_modules\handlebars\dist\cjs\handlebars\compiler\compiler.js:523:18) at ExpressHandlebars._renderTemplate (C:\Users\VladG\Desktop\Tutorials\Express Web\CSGOGamble\node_modules\express-handlebars\lib\express-handleba rs.js:247:12) at ExpressHandlebars. (C:\Users\VladG\Desktop\Tutorials\Express Web\CSGOGamble\node_modules\express-handlebars\lib\express-handlebars.j s:173:21)

Code:

Avatar Image {{user.displayName}}