Open livetoworldlife opened 4 years ago
If you get this error below Error: ENOENT: no such file or directory
1-solution A-Create views folder look like this:
B-Then main.handlebars will be templated below
<!DOCTYPE html> <html lang="en"> … <body> {{{body}}} </body> </html>
concat.handlebars will be templated below
<div class="container"> ….. </div>
Or
2-solution
in app.js use res.render('contact', {layout: false}); instead of res.render('contact');
Thanks you helped me alot!!!
Thanks, bro!!! It was super useful!!!!
If you get this error below Error: ENOENT: no such file or directory
1-solution A-Create views folder look like this:
B-Then main.handlebars will be templated below
concat.handlebars will be templated below
Or
2-solution
in app.js use res.render('contact', {layout: false}); instead of res.render('contact');