Questions tagged [express-handlebars]

474 questions
0
votes
1 answer

jQuery on('click') not working on dynamically generated page

I'm using handlebars to dynamically generate html pages for a NodeJS project. I have an event.js and a jquery.min.js file that are both loaded. Here's part of the HTML :
Lucky-Luke87
  • 19
  • 1
  • 4
0
votes
1 answer

Program does not recognize .modal("show") function after appending HTML to page

I am writing a program where a click event handler fires an ajax request to my node server, which then renders info inside of a handlebars partial and sends it back to the client (res.render("partials/scraped-article", data);). The client-side…
0
votes
2 answers

How to console.log individual req.checkBody params(errors msg) - express-Validator

This code working fine. It throws errors and displayed to the webpage. But now i want to pick individual errors and display to the webpage. // request.body validation req.checkBody('email', 'Email is required.').notEmpty(); …
0
votes
1 answer

express-handlebars & webpack - can't export partials and helpers in multiple paged app

I am using handlebars for my templating needs. I obviously need to render some templates on the server to handle building standard layout (with header, footer, navbar and content panel etc). But I also require some client side templating so that I…
0
votes
1 answer

Handlebars for each template not working in Node

I'm using Node.js, Express, and Handlebars to render template on client side. I'm not getting any errors, but the template is not getting populated. view: detail.hbs …
user752746
  • 617
  • 9
  • 31
0
votes
1 answer

Todays Date in Handlebars

Can Someone Help me in getting Today's date in the handlebar file ? The Output should be something like "Today is Thursday" . `