Most voted "handlebars.js" questions
Handlebars.js is a Javascript template system that gives you the power to develop semantic templates without any frustration. It is an extension of the famous Mustache templates system. If the question is not about "Handlebars.js", do not use this tag, even if you are using "Handlebars.js" in your project.
Learn more…34 questions
Sort by count of
-
4
votes2
answers84
viewsConflict between Jinja and Handlebars
How do I resolve a conflict between Handlebars and Jinja, since the syntax of both are similar?
-
3
votes1
answer156
viewsAlternative php include for handlebars.js in building templates
I am making a new website, I have the template ready and I want to implement handlebars.js, To control the template I always used: <php include "header.php"; ?> <php include "footer.php";…
-
2
votes0
answers27
viewsHandlebar not working on Firefox
I’m trying to use template to create cells in a table but the code only works on google Chrome, someone knows why? index.html <html lang="en"> <head> <meta charset="UTF-8">…
-
2
votes1
answer84
viewsBenefit from the use of template engine
I’m creating table cells by grabbing information from an api using "append", I wonder if there would be any benefit to using some template engine like Handlebars.js instead of using "append"? code:…
-
2
votes1
answer28
viewsAjax, HJS and Mustache
I don’t like writing HTML in Ajax, like this... var orderTemplate = "" + "<li data-id='{{_id}}'" + "<p><strong>Nome:</strong> <span class='noedit nome'>{{ nome…
-
2
votes1
answer283
viewsres.render does not load . handlerbars within route - Node.JS and Handlerbars
Good night! I’m learning Node.JS and I’m stuck on the routes. I have the following codes. //app.js // carregando modulos const express = require('express') const handlebars =…
-
2
votes1
answer177
viewsHow to make a #if with comparison of two variables using handlebars and nodejs
My problem is in creating #if with a comparison with two variables on the .handlebars. page In the edition page I retrieve the data and fill in the fields, however in my select, I need to compare…
-
1
votes1
answer32
viewsWhat are the main differences between REACTJS and Handlerbars?
I’m starting in web development now, I’ve learned to develop a simple application on the web. I am using handlebars as my view engine, but I would like to know the difference between reactjs and…
-
1
votes1
answer166
viewsError finding directory . handlebars
I have the following folder and file structure in my Node project: And the following configuration of email templates: configureTemplates() { const viewPath = resolve(__dirname, '..', 'app',…
-
1
votes1
answer218
viewsError picking up input from a <form> with Mongoose/nodejs
Hello, I recently started learning Node.js and I’m using Mongoose to integrate with db 'mongodb', and in this application I’m trying to take data of 2 and insert this data into the database, I made…
-
1
votes2
answers790
viewsHow can I use a handlebar variable inside a script
So I’m creating a nodejs project. I’m using handlebars as my template engine and sequelize as ORM. In my route file, I create a route and send the object "status" to my form page. (in this case, the…
-
1
votes1
answer206
viewsHow to show number of pages in handlebars paging?
This is my code to calculate the number of pages, here is calculating everything correctly, already tested. app.get("/page/:page", (req, res) => { var perPage = 3 , page = Math.max(0,…
-
1
votes1
answer1340
viewsSending body parameter via fetch API
I am trying to send a request asynchronously via javascript to the backend in Node, follow the front code: if ( window.location.pathname.indexOf('/') != - 1 ||…
-
1
votes0
answers23
viewsDear friends, how can I take the result of the code below and insert it into an HTML tag? Any way to do it using handlebars?
var http = require("https"); var options = { "method": "GET", "hostname": "freegeoip.app", "port": null, …
-
0
votes1
answer63
viewsHandlebars Compile Function with options Parameters
I want to minify my template during the build period of the same on Nodejs Researching about I discovered that the handlebars.compile(templateLoaded); has more options than the template parameter. I…
-
0
votes1
answer260
viewsProblem with Success message after registration of 2 inputs in the bank!
Hello, I have a problem in my code, after registering 2 inputs should appear a message of success in uam green div, but only appears the green div and the message no, already revised the code…
-
0
votes0
answers35
viewsDeploy a project using Handlebars as a template
today I went to try to deploy a repository where I use the handlebars for template and it turns out that it does not find the files (404 not found) Link to the repository…
-
0
votes1
answer336
viewsHbs file does not redenrize
I’m making an application with backend Node.js and Handlebars. I’m having trouble rendering the file Hbs layout., I’ve run some tests on the archives server.js and main.js and the routes are ok.…
-
0
votes2
answers375
viewsOpen javascript in handlebars
I’m making a system using Handlebars on Nodejs, when I try to get my javascript code for it, it doesn’t find it. The solution I found was to send my javascript as a page by Node and then pick it up…
-
0
votes1
answer869
viewsX-FRAME-OPTIONS TO DENY
I need some direction. I am developing an application where on one of the screen users are allowed to view a specific report of the page, to avoid that when clicking on the option to generate the…
-
0
votes1
answer279
viewsFormat the date with express-handlebars in Nodejs
good night. How do I format the date that comes from the database using express-handlebars? Follow my code below: app js. const handlebars = require('express-handlebars) // Handlebars…
-
0
votes1
answer148
viewsPass data without Parsing to handlebars
I’m passing data to the handlebars through the express so: res.render('user/apps/todos', { todos: JSON.stringify(todos) });` And so I get on the page: {{ todos }} Now, if todos for: [{"title":"My…
-
0
votes0
answers118
viewsAuto-fill inputs in the edit form with old data
Well, I’m using Node.js and Mongoose (mongoDB) as a framework for the database. On the front end I’m using handlebars. The problem is that the inputs are empty even passing as parameter the object.…
-
0
votes1
answer94
viewsHow popular are multiple <select> "with distinct results" in a single app.get() route?
Still beginner in Nodejs and working with Express, Handlebars and Mysql. In a form - which in the future will be a register, this has among other inputs, two <select> any, one must be filled…
-
0
votes1
answer111
viewsHow can I make my Ode application available in many languages?
Hello, I have a Ode application that uses express and handlebars, I would like to make it available in 3 different languages (Portuguese, Spanish and English). I managed to do this by creating a…
-
0
votes1
answer170
viewsInnerhtml function doesn’t work?
I am using the view engine handlebars, however, when I went to manipulate DOM elements, it continues with the value given to it by the exhaust, follows the code below: monitor page.handlebars:…
-
0
votes2
answers747
viewsHandlebars: Access has been denied to resolve the Property "title" because it is not an "Own Property" of its Parent
I’m having a problem with displaying mysql data by handlebars: Executing (default): SELECT `id`, `titulo`, `conteudo`, `createdAt`, `updatedAt` FROM `postagens` AS `postagens`; Handlebars: Access…
-
0
votes0
answers37
viewsHow do I access the value of an object in the view with handlebars when that object was created within a controller?
I created a controller file that has an object with some items being one of them a function that returns files from a folder. When giving console.log an array is returned with the files from this…
-
0
votes0
answers29
viewsProblem with Body-Parser
I have a problem with Runtime of Javascriptthe NodeJs, I finished the modules bodyParser, express and handlebars Yet I can’t bring myself to parameter req, exactly the req.body.name and the…
-
0
votes0
answers26
viewsHelp with paging with Express-Handlebars and Mongoose
I’m using the Express-Handlebars and the Mongoose, I want to make a page, I think I got the code on the model, but I got lost in time to pass it to the handlebars and then, I decided to come here.…
-
0
votes0
answers26
viewsHeroku Nodejs "Cannot GET"
I made a CRUD with Nodejs, Express, Handlebars and Mongodb - Works great in development, but when I try to make the Deploy in Heroku from the continuous error "Cannot GET /". I’ve researched a lot…
-
0
votes2
answers35
viewsI cannot return the requested amount ( Mongodb )
I’m trying to make a list of names of people who are registered in my database, and print on the web The model I’m using is this const mongoose = require('../../database/conn') const bcrypt =…
-
-1
votes2
answers626
viewsError while trying to display database data using Handlebars
Handlebars is returning this error to me every time I access the html page, it receives the values from the database but does not display. I’m using Mongo as a bank. Can you tell me if it’s some…
-
-1
votes1
answer23
viewsHandlebars validate button Submit
Hello, need to do a check using handlebars... after clicking the sign up button, if the registration is successful, displays a modal otherwise the user is forced to fill in the fields, however I…