Questions tagged [express-handlebars]
474 questions
0
votes
1 answer
ng-options slow data render or on click data render in dropdown with less amount data
in my view(Handler bar template is used) on page load function get call and fetch the value from server and load the value for both dropdown via ng-options, but data comes in both dropdown after click in both select boxes. means on first select box…

Sachin Saini
- 1
- 1
0
votes
1 answer
How do I write this pug function in handlebars?
Can someone tell me how I can write the following pug code in handlebars code?
ul
for product in products
li #{product.product}
li #{product.price}
I found the following code, but I have to populate two points per…

Zarif
- 587
- 1
- 4
- 26
0
votes
1 answer
Is it possible to use express handlebars to only render a partial without a layout?
I've correctly set up express handlebars with the following directory structure:
views/
layouts/
partials/
user-search-partial.html (stored in views > partials)
render…
Search Users

I am me
- 131
- 2
- 12
0
votes
0 answers
unable to Render data on handlebars to ng-tag-input field
I trying to render the data from node server to handlebar file. but unable to access the data on ng-tag-input .
can anybody help ?
thanks in advance.

Sachin Saini
- 1
- 1
0
votes
0 answers
Data binding Express-handlebars
I'm developing shopping cart as part of my learning.
Homepage
What I'm doing now:
views/index.hbs
0
votes
2 answers
Developer comments in handlebars with no output in client side
I'm using Express Handlebars as a template engine for node.
I know there's an option to add HTML comments with it, but is there a way to add developer comments that won't get printed on the final source ?
This is what I found:
{{! This comment will…

Alvaro
- 40,778
- 30
- 164
- 336
0
votes
1 answer
Getting TypeError as registerHelper is not a function when using handlebars in node js application
My node js application is having the below code wherein I am trying to register a handlebars if-else logic in order to use that in my template file. However it is throwing error as "TypeError: hbs.registerHelper is not a function". Can anybody point…

H.Burns
- 419
- 2
- 9
- 22
0
votes
1 answer
How to use MVC viewBag concept in express js?
I am using express js 4.1 along with handlebars template 4.0. When rendering a page I am sending collection of objects from express route.get('/') to handlebar(.hbs) view file. Is there any possibility to the send object like viewbag (similar to…

Dhya S
- 143
- 2
- 14
0
votes
1 answer
How to call functions from html code using express-handlebars?
I´m sure this is a very basic question, but I´m starting with MEAN stack using express-handlebars and still launching my skills.
I´m coming from PHP world and I use to call PHP functions from insede my phtml code, as:
© 2012 - =…

Mendes
- 17,489
- 35
- 150
- 263
-1
votes
1 answer
Unable to display the uploaded image in express node project? Please support
want to display the image which was uploaded in server,but unfortunately not getting.
Image is uploaded successfully in server and changed the name in express project folder,but while fetching not getting the image.
Additional route path is coming…

Arun K
- 1
- 3
-1
votes
1 answer
Get id of elements where the ids are dynamically generated
I have a set of elements that have been generated dynamically through Handlebars as seen below
{{#floor as |room i|}}
-1
votes
1 answer
How can i access signup function elements from verify function?
I'm new to website building. I am using node js, express, and express-handlebars. I have 3 hbs page file called signup, verify, and login. I am trying to check if signup page has any errors using exports.signup and then if it's alright then…

Ryan143
- 29
- 2
-1
votes
1 answer
Live output of node spawn function to webpage
I have a webserver that takes user input for a Docker container, creates a global_vars file (Ansible variables file),
it then copy paste's the appropriate group_vars file to the Ansible folder, finally it runs the ansible-playbook.
What I want to…

Firdaus Aga
- 27
- 2
- 6
-1
votes
1 answer
App crashed on heroku when i included express-handlebar in the project, but works locally
Here is the code i added to the app that caused it to crash on Heroku servers, removing these codes cause the app to work properly on heroku my app works with these code locally
const exphbs =…

Joshua Evuetapha
- 11
- 4
-1
votes
1 answer
Why does this AJAX call not redirect to the `/login` URL?
I am making a Node Express app with Handlebars.
I get a success message printed in the console but the URL is not changed to /login, and hence the page never gets rendered, although, when I manually type the URL localhost:3000/login into the…

Vinita
- 1,834
- 2
- 8
- 20