Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
34 views

Error: the partial navbar could not be found

I have a hbs partial file for my navbar that i want to call in other hbs files. but i am facing an issue in the output. the error message i get is Error: C:\Users\Admin\node-mysql\views\homepage.hbs: ...
raven's user avatar
  • 11
1 vote
0 answers
40 views

Why is Express Handlebars expecting a layouts folder instead of layout folder?

"I’m using express-handlebars for templating in my Express.js app. I have set up the layout folder, not layouts, and specified its location correctly in the configuration. However, despite my ...
Fazeel Anwar's user avatar
0 votes
2 answers
46 views

Node server can't find client-side javascript file. Serves 404 page instead

I am trying to build my first node.js app with express and handlebars. In my homepage(index.hbs) I have a script tag with some client-side JavaScript and works fine: <script> console.log("...
Emmanuel's user avatar
0 votes
1 answer
331 views

Email template issue using handlebars js in nest js

I am trying to use handlebars js in my nest js project to send email. Email sending properly but in email body content not rendered properly. It creates responsive issue , styling issue . in my ...
kasfik's user avatar
  • 81
0 votes
1 answer
71 views

How can I make an update route with express and sequelize?

I am trying to make an update route using NODE (Express and Sequelize). I'm having trouble trying to make the update item for my database. Here is how I'm trying to do it: app.put('/updateitem/:id'...
grgrafa's user avatar
0 votes
1 answer
57 views

Express.js Reload Template Engine

Does anyone know how (or if it's even possible) to reload the template engine views for Express.js without restarting the server and not disabling view cache? Something like... app.set('view engine', '...
YarGnawh's user avatar
  • 4,664
0 votes
1 answer
45 views

Rendering api data to handlebars

I am attempting to pass the results from a Promise.all multi-get request to my handlebars view. The request is functional as it returns results to the terminal, but I cannot figure out how to get the ...
Chris's user avatar
  • 1
0 votes
1 answer
65 views

Cannot access array data in handlebars

I am having difficulty rendering data into handlebars. I have tried both {{#each}} and {{if}} processes in the view as follows: {{#each obj}} {{title}} {{/each}} The (abbreviated) json response is as ...
Chris's user avatar
  • 1
0 votes
0 answers
47 views

Accessing JSON items with Handlebars

I am attempting to render the results of a get request on the financialmodelingprep API into handlebars. When I use {{results}} on the rendered view, the raw response is as follows: [ { "symbol&...
Chris's user avatar
  • 1
1 vote
1 answer
69 views

Display model properties with sequelize and handlebars

I'm a beginner in programming and I'm currently working on a website project : a basic one where the user can write and post articles. On the user account page, I want to display the history of ...
CooperPeaks's user avatar
-1 votes
1 answer
43 views

getting "Error: Cannot read properties of undefined (reading 'username')" in my POST request

My POST request isn't working and it's not updating? The error is: TypeError: Cannot read properties of undefined (reading 'username') app.post('/create-user', function(req, resp) { const ...
Nawsh's user avatar
  • 1
0 votes
1 answer
95 views

How can I access object properties in my .hbs template?

I have a webpage that needs to display informations about Cars at a dealership. All is well, except, I cannot access object properties from inside the .hbs view template. Here's what I have: 1 - The ...
nightfixed's user avatar
1 vote
0 answers
62 views

Comments not Displaying Under Posts - Handlebars.js and Express.js

I'm working on a web application where users can post and comment on posts. I'm using Handlebars.js for rendering on the client-side and Express.js on the server-side. However, I'm facing an issue ...
Eric Risher's user avatar
0 votes
1 answer
54 views

Parse JSONString and then iterate over the array in handlebars

I have data like this : { "data" : [ { "query": "Hello", "response": "asad" }, { "query": "Tell Weather dale", "...
amit.s19's user avatar
  • 205
3 votes
2 answers
330 views

Register partials in express-handlebars

I'm trying to register my partials into my app. I cannot figure it out how to do so. No matter what answer I get from other stack questions, it just don't work for me... I set the express handlebars ...
daniel sas's user avatar

15 30 50 per page
1
2 3 4 5
67