Questions tagged as 'handlebars.js'

1
answer

Error showing data in handlebars-js

I'm trying to access the id of this element sent by json in handlebars.js { "status":"success", "message": { "message":"sdasdasasd", "type":"photo", "post_id":55, "title":"", "description":"",...
asked by 15.03.2016 / 22:08
1
answer

Failed to lookup view "home" in view directory using handlebars

Hi, I'm using node with express and handlebars but when I try to render the view, the error mentioned appears.    Error: Failed to lookup view "home" in views directory   "/ home / joaquin / workspace / nodejs / EasyRcu / views" at   EventEmi...
asked by 18.10.2016 / 15:09
0
answers

Send parameters nodemailer, email-template-v2, hbs.

I'm using nodemailer to send emails, and email-template-v2 to send an HTML format, my purpose is to send some variables as a reference, payment and currency by email, but I really do not know how, I did not like to show it in my template .hbs, i...
asked by 27.11.2018 / 05:15
0
answers

error failed to lookup view

I am currently starting with my learning with NodeJS and express. My problem arises with a route that sends me an error, in this case with the user path const router = require('express').Router(); router.get('/users/signin', (reg, res) =&g...
asked by 26.11.2018 / 01:06
0
answers

Expressjs and handlebars, I can not get the logeado user ID

I'm trying to get the id of the user who is currently logged in, but I can not find a loop and it does not recover the id of the logged-in user, in order to edit a comment as long as it corresponds to the one who did it and to the user that is c...
asked by 11.08.2018 / 09:27
0
answers

how to do if-elseif-else custom with handlebars helpers

I know how to make a personalized helper called or #isAdmin that verifies from my list of users who has the role of ADMIN, and based on that it shows me button to delete users etc, but I would not know how to do an if else if else with helper si...
asked by 17.07.2018 / 12:29
1
answer

Redirecting login in nodejs with express

I'm starting with node and express, I would like you to help me with re-addressing problem after login, I do not understand what I could be doing wrong. The code that I have written is this way: This is the routing index file router.get(...
asked by 21.07.2017 / 21:44