ejs шаблон не работает
Ejs Выдаетт ошибку
SyntaxError: Unexpected token 'catch' in C:\xampp\htdocs\mysite.local\views\index.ejs while compiling ejs If the above error is not helpful, you may want to try EJS-Lint: https://github.com/RyanZim/EJS-Lint Or, if you meant to create an async function, pass `async: true` as an option. at new Function (<anonymous>) at Template.compile (C:\xampp\htdocs\mysite.local\node_modules\ejs\lib \ejs.js:661:12) at Object.compile (C:\xampp\htdocs\mysite.local\node_modules\ejs\lib \ejs.js:396:16) at handleCache (C:\xampp\htdocs\mysite.local\node_modules\ejs\lib \ejs.js:233:18) at tryHandleCache (C:\xampp\htdocs\mysite.local\node_modules\ejs\lib \ejs.js:272:16) at View.exports.renderFile [as engine] (C:\xampp\htdocs\mysite.local\node_modules\ejs\lib \ejs.js:489:10) at View.render (C:\xampp\htdocs\mysite.local\node_modules\express \lib\view.js:135:8) at tryRender (C:\xampp\htdocs\mysite.local\node_modules\express \lib\application.js:640:10) at Function.render (C:\xampp\htdocs\mysite.local\node_modules\express \lib\application.js:592:3) at ServerResponse.render (C:\xampp\htdocs\mysite.local\node_modules\express \lib\response.js:1012:7) <% for(var smart in smartphopneList){ %> <tr> <td class="leftitem" style="padding:10px;border-left:1px solid silver;border-top:1px solid silver;border-bottom:1px solid silver;"> 'Производитель: '<%= smart.prod %> ] </td> <td class="rightitem" style="border-top:1px solid silver;border-bottom:1px solid silver;"></td> <td style="text-align:center;border-right:1px solid silver;border-top:1px solid silver;border-bottom:1px solid silver;"> <p><a href="/somesmart/" style="color:white;background-color:orange;padding:4px;border-radius:3px;font-weight:bold;">Подробнее</a></p> <p><a href="/basket/" style="color:white;background-color:green;padding:4px;border-radius:3px;font-weight:bold;">В Корзину</a></p> </td> </tr> } |
Часовой пояс GMT +3, время: 01:11. |