7,696 questions
2
votes
0
answers
32
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
24
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
55
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
44
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
38
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
37
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
29
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
35
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:...
1
vote
0
answers
44
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
21
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
35
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: ...
1
vote
0
answers
42
views
Why is Express Handlebars expecting a layouts folder instead of layout folder?
"I’m using express-handlebars for templating in my Express.js app. I have set up the layout folder, not layouts, and specified its location correctly in the configuration. However, despite my ...
0
votes
0
answers
28
views
How do I invoke my lang key using Handlebars JS inside a Javascript template literal
I'm trying to invoke my lang files (i.e. en.json, es.json, etc.) within a Javascript template literal however, when I call upon the lang file using Handlebars, it renders the lang call as a string ...
0
votes
0
answers
31
views
Ghost.io Blog "style" variable
I'm working on a Ghost Theme and with the given Ghost Theme I'm working on there's a code that checks for equality of style to 'one' or 'two':{{#match style "one"}}
and {{#match style "...
0
votes
1
answer
55
views
Acessing variable outside the scope in handlebars
I have a handlebars template, that looks like this:
{{#each leagues}}
<tr>
<td>{{leagueName}}</td>
<td>{{season}}</td>
<td>
<form action="/...
0
votes
1
answer
37
views
Display Product Variant Option data in Big Commerce theme files
In relation to the Big Commerce documentation thanks to this question/answer, I have the following in templates/pages/product.html:
---
product:
videos:
limit: {{theme_settings....
0
votes
1
answer
130
views
How to display image from Strapi collection content
Im having trouble receiving the media attribute of my content in my collection from strapi on my 11ty project. Every time I try something with trying to recieve my image data it breaks my page.
Strapi ...
0
votes
0
answers
41
views
How to call a handlebar partial from href html
I have a partial template and when I call it from ****<a class="navbar-brand" href="{{> Golfers }}”>Golfers</a>**** it is displayed automatically in the page, should I ...
0
votes
2
answers
46
views
Node server can't find client-side javascript file. Serves 404 page instead
I am trying to build my first node.js app with express and handlebars. In my homepage(index.hbs) I have a script tag with some client-side JavaScript and works fine:
<script> console.log("...
0
votes
0
answers
26
views
incorrect expansion of template handlebars.js
I can't figure out how handlebars performs template generation.
I found one case that gives me unwanted results. It seems that handlebars behaves differently depending on the template to be expanded.
...
0
votes
1
answer
437
views
Response Template in Wiremock Standalone is not working with json string
I have the following response configuration that I'm testing with wiremock standalone jar v3.4.0.
{
"id": "e6e2b5cf-52c1-3b0a-b368-3ea71e444fbf",
"request": {
&...
0
votes
0
answers
56
views
How can I pass a variable to Handlebars helpers without exposing it in the template?
I am working on a chatbot project using Handlebars in NodeJS with TypeScript. I need some guidance on how to pass an object (e.g. TransactionManager) to Handlebars helper functions without exposing it ...
0
votes
1
answer
335
views
Email template issue using handlebars js in nest js
I am trying to use handlebars js in my nest js project to send email. Email sending properly but in email body content not rendered properly. It creates responsive issue , styling issue .
in my ...
0
votes
1
answer
71
views
How can I make an update route with express and sequelize?
I am trying to make an update route using NODE (Express and Sequelize).
I'm having trouble trying to make the update item for my database.
Here is how I'm trying to do it:
app.put('/updateitem/:id'...
0
votes
0
answers
49
views
Update item in handlebars
I'm using handlebars and I want to make an update page with the value of each item from my database on the "value" field, as I kind of did with my stock display page
{{#each itens}}
<!-- ...
0
votes
0
answers
35
views
Stripe, invalid csrf token
I am developing a project using Stripe API and Node.js, integrated with Handlebars. I'm new to Node.js and Handlebars. I have a problem, that states invalide csrf token at
csrf (/Users/Ahmadzai/...
1
vote
0
answers
105
views
HTML tables arbitrarily breaking to new page in PDF report
I am using JSReport (template engine: handlebars.js, pdf recipe: chrome-pdf) to generate PDF reports from html/css and I have encountered some very strange behavior with tables breaking to a new page ...
0
votes
1
answer
381
views
Mockoon | Error while serving the content
I am using mockoon to mock an api with endpoint localhost:3004/api/v1/users1?filterBy=lastName&value=Brown. Basically I am trying to implement mock api which supports filtering. I am using a data ...
0
votes
0
answers
76
views
How to access Translation object t within Shopify theme app extension's liquid snippet ? [handlebar.js]
This is my .liquid file
offers.liquid file
{% raw %}
<script id="cross-sell-popup" type="text/x-handlebars-template" data-no-instant>
<div>
<div class="...
0
votes
1
answer
119
views
Handlebars is not defined" Error in NetSuite User Event Script
I’m fairly new to NetSuite, although I have done some maintenance work on existing SuiteScript code before. Currently, I’m working on a NetSuite User Event Script that uses Handlebars.js to generate a ...
0
votes
0
answers
67
views
Conditional color formatting using handlebars and html inside PowerApps
I'm making an app with PoweApps, using Scott Durow's PFC Power Drag and Drop.
This PCF gets data from a collection and display the items to be dragged according to a template that uses HTML and ...
0
votes
0
answers
46
views
How do we make Storybook 7.x/8.x work with a templating engine like Handlebars in 2024?
I've been trying to get the Vanilla HTML version of Storybook to work with something like Handlebars so that I don't have to copy and paste around chunks of HTML when building Atomic components.
(I ...
0
votes
0
answers
157
views
Handlebars chart In Apache Superset is treating JSON as a string
I have data in a mysql database where I have structured it so that the first column is an id and the second column contains and array where each item in that array has an id and a status. In the sql ...
0
votes
0
answers
29
views
handlebars lightncandy php libary nested each statements lose access to variables established in higher loop
Consider the following minimal example of handlebars Javascript.
{{#each arr as | topLevel topIndex |}}
{{topLevel.value}}
{{#each topLevel.children as | secondLevel secondIndex |}}
...
0
votes
0
answers
28
views
How to split a table and insert a scroll bar?
I am working on a node js web project. I added a table to the page but I want to put the first 3 columns of this table to the left and the buttons to the right. I am using Bootstrap 5.3.3 and ...
0
votes
1
answer
58
views
Express.js Reload Template Engine
Does anyone know how (or if it's even possible) to reload the template engine views for Express.js without restarting the server and not disabling view cache?
Something like...
app.set('view engine', '...
0
votes
0
answers
205
views
How to add histograms to Handlebars table in Superset?
I make table for Handlebars in Superset 4.0.0.
I add formatting with CSS in Live CSS editor.
But I still need add histograms to Revenue fact column.
How to add histograms?
Do I need to check settings ...
0
votes
1
answer
58
views
How to escape {{}} in javascript handlebars?
I have the following 'my.txt' file,
Input file
name={{applicationName}}
env=app/{{env}}/{{applicationName}}
I wish to update my text file using javascript handlebars, in such a way that my text file ...
0
votes
0
answers
40
views
Uncaught TypeError express-handlebars
I'm trying to connect to express-handlebars.
This is my index.ts:
import * as express from 'express';
import { engine } from 'express-handlebars';
const app = express();
app.engine('handlebars', ...
0
votes
0
answers
11
views
Gulp only randomly output file?
I've got this function on Gulp that precompiles templates and partials and then outputs a file. Well, only sometimes, that is.
I can't seem to wrap my head around the 'inner workings' of Gulp.
...
0
votes
2
answers
39
views
Cannot loop an array in a handlebarsjs template
For some reason I cannot loop through the items array to display in my order confirmation email template the items, quantity and price of the customer order.
Any ideas what I'm I doing wrong? I've ...
0
votes
0
answers
31
views
Exposing Handlebars via Webpack
I want to expose jQuery and Handlebars to be accessible from the outside (i.e. browser console via window.Handlebars).
So I added expose-loader and the following module rules into the Webpack config:
…...
0
votes
0
answers
176
views
Superset HandleBar support for array type Column iteration
I have a requirements to create dynamic table on the basis of array type columns in my data. Both array type column have the same number of attributes.
Image shows actual running code
Image shows ...
0
votes
0
answers
150
views
Dynamic unsubscribe link with handlebars
I have a need to dynamically show/hide the unsubscribe link in my email template. This is being requested because not every request will always include the "asm" object with the unsubscribe ...
0
votes
1
answer
68
views
How to add a nav link in the section "My account"
I was trying to add a new link to navbar in my account, I added a new item to navbar beside
Account Settings.
But I am unable to set a link to it using like {{urls.account.cards}}. How i implemented ...
0
votes
1
answer
434
views
Mockoon: How to use helper functions in someOf array
Im trying to use helper functions in a someOf array but i cant get it to work, it always prints out the helper function as a string instead of executing it. How can i make it execute the functions?
I ...
0
votes
0
answers
56
views
Handlebar expression to return object from JSON string/array
I have a SharePoint multiple lines of text column that is being populated with a JSON string from a SQL table.
I don't have access to the SQL table, so am trying to manually manipulate the data within ...
0
votes
1
answer
45
views
Rendering api data to handlebars
I am attempting to pass the results from a Promise.all multi-get request to my handlebars view. The request is functional as it returns results to the terminal, but I cannot figure out how to get the ...
1
vote
0
answers
223
views
How to find sum of items in a decimal list using superset's handle bars chart
I have Apache Superset handlebar chart in which I wish to show sum of data in list instead of each items in list
HandleBar templete
<div class="data-list">
{{#each data}}
<h4&...
0
votes
1
answer
66
views
Why is tabindex=0 still used in HTML even when a feature flag is false in Ember.js?
I'm working on an Ember.js project where I've implemented a feature flagging system to control certain UI elements based on specific conditions. However, I've encountered a situation where even when ...