Questions tagged [hbs]

83 questions
4
votes
0 answers

Prettier: error formatting valid handlebars/html code

This is my first interaction on Stackoverflow! Is there a way, under vscode, using prettier or another solution, to format the following handlebars/HTML template:
Click…
2
votes
0 answers

How to add new parameter from NestJS Interceptor to DOM element generated by hbs template?

I've just started studying NestJS, so, I couldn't even simply figure out what could went wrong trying to add new variables from Interceptor to DOM via hbs parameters. My studying task was just to print logging information about server response time…
2
votes
1 answer

How can i fetch data on a page to another, without refresing the other page?

I'm looking to solve a problem that I'm trying to find about 3 days and I cant find it. I already have wrote a crud application using Nodejs, Express, Handlebars, and MySQL Database. It works perfectly, but when i try to send data to other page with…
Straqpy
  • 21
  • 1
2
votes
1 answer

How to add Multiply any number with index of array in node.js using hbs engine?

{{#each myArray}}
{{/each}} This is my code . I want a dynamic delay to all contents which added dynamically. For example if…
2
votes
0 answers

Handlebar template not showing on nodemailer email

I'm trying to send an email using nodemailer with a template using handlebars, however, I can't get the template to show on the email. In network, the api that sends the email is showing the correct preview and response (in html) for what should be…
pelotador.1
  • 195
  • 1
  • 12
2
votes
1 answer

I want to be redirected to a file.js after when i am logged in

This is my Express code by using handlebars using .hbs code const express = require("express"); const path = require("path"); const app = express(); const port = 3001; //for mongo all mongodata require("dotenv").config(); const cors =…
ABHI SHEK
  • 85
  • 6
2
votes
3 answers

How to get the id from the given lines of code?

{ acknowledged: true, insertedId: new ObjectId("612d9d08db9c20f031033478") } This was the JSON format I got while I added a file and some other things to MongoDB and I want to get this id separately to save the file to another folder. Can…
001 falah
  • 21
  • 1
1
vote
1 answer

EMBER: Render div block only if component has yielded

I have the following hbs snippet:
{{yield to='leftbar'}}
I am consuming the leftbar component in: <:leftbar>
adhu
  • 35
  • 6
1
vote
0 answers

How to use tailwindCSS in .hbs file

I am facing issues while using tailwindCss in hbs file . Can someone tell me the procedure of integrating the tailwindCss in .hbs file? I have tried many things but the inline property of tailwindcss is not applying to any element.
1
vote
1 answer

Cant Copy Text To Clipboard

I am using hadlerbars as the view engine for express and i want the text in the variable code to be copied to the clipboard i tried many solutions . This is my current code function copyLink() { var copytext =…
Naveen Ravi
  • 113
  • 1
  • 8
1
vote
1 answer

ktor send email with html template

I am wondering what is the correct way of sending HTML templates with ktor via email. This answer Sending Emails From Ktor Application can help inline HTML, or simple string but not hbs or other templates which can be used in ktor. email service…
Victor Orlyk
  • 1,454
  • 2
  • 15
  • 27
1
vote
0 answers

The partial header could not be found

The partial header could not be found how to solve this problem I don't know how to solve this problem const express = require('express'); const port = 3000; const app = express(); const hbs = require('hbs'); const path =…
1
vote
1 answer

Handlebars HBS Express - How to iterate an object without specify the properties

I am trying to iterate using the properties of an object to dynamically print a table having an array with the properties and an object with the values ​​of each property. I don't know how to do the 2 iterations using hbs express from…
Raul
  • 13
  • 4
1
vote
1 answer

i am getting this error even after executing this command "npm install express-hbs --save"

Hey guys I am getting error even after executing the above command if there is any other command to resolve this error please let me know Error: Cannot find module 'express-hbs'
1
vote
2 answers

Obtain value from an input in real time

I am trying to get the value of an input in real time but I can't get it I'm trying that in the bottom button the first X is the amount of carrots specified in the input above, and in the second X is a number that will be calculated in a script, all…
user16284023
1
2 3 4 5 6