7,677 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
99
views
How to add an item to the cart only once?
I am working on my store project using JS. I have the addToCard code to add a product to the cart. This code works, but I would like to add the product only once. After which, when I click the button(...
0
votes
0
answers
72
views
Dynamic State-wise Coloring in India Map using amCharts 5
I'm building an interactive India map using amCharts 5, where each state should be dynamically colored based on its purchase contribution percentage. The contribution data is coming from the backend, ...
4
votes
0
answers
75
views
How to style row before page break different than table end?
I am trying to dynamically generate (via Handlebars) a PDF report with Playwright. It seems I can't get the table to split nicely across pages. After the last table row on the first page, I want the ...
0
votes
1
answer
41
views
Passing a dynamic variable to a handlebars partial
I am trying to build a web site for a school project am trying to pass a handlebars expression to a handlebars partial but it is just reading it at point blank value and gets processed as "{{...
2
votes
0
answers
38
views
Handlebars.js double braces output forbidden code point
I have a string with invalid XML code point
var o = { name: "A\u0002B" }
And Handlebars.js template: {{name}} which outputs the string unchanged with U+0002 character between A and B. A web ...
0
votes
0
answers
76
views
configure autocomplete snippits in nvim for .hbs file
How do I configure autocomplete snippets for .hbs (Handlebars) files in Neovim using the NvChad framework?
I'm using Neovim with the NvChad configuration framework, and I want to enable autocomplete/...
0
votes
1
answer
82
views
Issue using express-handlebars in Node.js – "shop.hbs" not found even though it's in views folder
I'm trying to use express-handlebars with Node.js, but I keep getting an error that says the view file can't be found. The error specifically mentions that it can't locate shop.hbs, even though the ...
1
vote
0
answers
230
views
How to return a number instead of a string in Wiremock JSON response template
Below is shown the JSON response file for a wiremock request. The issue is that the value for num in the request is a number, but this response file is returning num as a string.
{
"num": &...
0
votes
1
answer
51
views
How to set layout's page title from a view? [closed]
Let's say I have this Handlebars layout:
<!DOCTYPE html>
<html>
<head>
<title>Page title</title>
</head>
<body>
<div>
...
0
votes
1
answer
48
views
How to define an array and loop in a template?
The following is the unsuccessful code
{{#each ['Home', 'About']}}
<p>{{this}}</p>
{{/each}}
I understand that I can define the array in js and pass it to handlebars to have it render ...
2
votes
0
answers
32
views
Unusual Gulp Task Behaviour
I am struggling with a Gulp Task and what it is doing.
Let me start with the first task:
gulp.task('html-template:join', (cb) => {
gulp.src('./src/template-data/**/*.json')
.pipe(...
0
votes
0
answers
77
views
How to make @tailwind/cli run other npm scripts after --watch?
This is my package.json
"scripts": {
"dev:tailwind": "npx @tailwindcss/cli -i ./src/assets/styles/input.css -o ./dist/assets/styles/output.css",
"dev:...
0
votes
0
answers
55
views
Error importing handlebars: Error [ERR_REQUIRE_ESM]: require() of ES Module
I am trying to implement a nestjs server using typescript to send customized emails with embedded html templates,i am using nodemailer-handlebar dependency but when i run the code it consoles ...
0
votes
1
answer
26
views
Handlerbar js Double Curly Expression {{ k }} in Laravel blade file show error
I am implementing the Handlebar js template in the Laravel blade view file like the one below
<script type="text/x-handlebars-template" id="item_template">
<tr>
...
0
votes
1
answer
64
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: ...