7,704
questions
0
votes
0
answers
13
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
59
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
51
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
149
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
54
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
46
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
29
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
66
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
64
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
31
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
110
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
29
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
17
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
22
views
When rendering html file with hbs on nestjs, dist does not see where the file is kept
First of all, after creating a views folder where I specified in main.ts, I added my contract.hbs file in it, but I was getting an error that main.hbs cannot be found in layouts. Then I copied ...
0
votes
0
answers
33
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
24
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
52
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
108
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
52
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
35
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
32
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
28
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
95
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
87
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
54
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
171
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
41
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 ...
0
votes
0
answers
160
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
63
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 ...
0
votes
0
answers
37
views
Configure handlebars instance using plain nestjs
I'm using Handlebars with NestJS (MVC). Is there a way to pass custom config options (e.g. helpers) to the underlying handlebars instance? I didn't find any options in the docs...
https://docs.nestjs....
0
votes
1
answer
60
views
How do I access an array item by index in handlebars?
Here is my json.
{
"data": [
{
"Category": "without",
"Nb1": 12,
"Nb3": 20,
"percent": 66.67
}
]
}
I ...
0
votes
1
answer
69
views
How to get index last position in Handlebars each helper?
I know that this's the way to display the index of an array inside the 'each' helper:
{{#each array}}
{{@index}}
{{/each}}
My question is how to display the array length instead. Something like:
...
0
votes
1
answer
63
views
Cannot access array data in handlebars
I am having difficulty rendering data into handlebars. I have tried both {{#each}} and {{if}} processes in the view as follows:
{{#each obj}}
{{title}}
{{/each}}
The (abbreviated) json response is as ...
0
votes
0
answers
47
views
Accessing JSON items with Handlebars
I am attempting to render the results of a get request on the financialmodelingprep API into handlebars.
When I use {{results}} on the rendered view, the raw response is as follows:
[ { "symbol&...
0
votes
1
answer
171
views
Trouble using Handlebars partials (nestjs + Fastify)
I'm trying to replace static content in my project with templates using Handlebars. The name of my project is ready-to-read, so I have the following file structure:
ready-to-read
-public
-src
-views
--...
0
votes
0
answers
242
views
unsafe-eval in the handlebar.min.js
Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'unsafe-...
0
votes
0
answers
59
views
using handlebars to display data from a returned promise
I am trying to display data in my template that is returned from an api fetch. I'm using Node with Fastify.
The code I am using to send to the handlebars helper from my template is:
value="{{...
0
votes
0
answers
38
views
Prettier does not work in <script> tag in handlebars (hbs) file
My FE using handlebars (hbs) file and Prettier work pretty well except <script> tag of handlebars file
enter image description here
Has anyone encounted this issue?
1
vote
1
answer
57
views
Display model properties with sequelize and handlebars
I'm a beginner in programming and I'm currently working on a website project : a basic one where the user can write and post articles.
On the user account page, I want to display the history of ...
0
votes
0
answers
44
views
Handlebars: Using expressions in input data
I want to use Handlebar expressions inside the input data.
The input is like this:
{
firstname: "Yehuda",
lastname: "Katz",
name: "{{firstname}} {{lastname}}"
}
...
0
votes
0
answers
41
views
Handlebars: Access has been denied to resolve the property "status" because it is not an "own property" of its parent
GET /admin/add-product 200 70.156 ms - 3932
Handlebars: Access has been denied to resolve the property "status" because it is not an "own property" of its parent.
You can add a ...
0
votes
0
answers
18
views
handlebars arithmetic opperations [duplicate]
i am using handlebars to make a template to hold the chords of a song in a table. I have it working so that the chords are all in their own cells and 1 cell per row. However, I cant find a way to ...
0
votes
1
answer
114
views
How do you render HTML with initial data first and then again, when finalised data is received (node.js+fastify+Handlebars in Glitch.com)?
I have a minimal app built on top of a Glitch.com default template that uses node.js, fastify and Handlebars.
The user presses a button that has a simple <a href="?generate=now"> style ...
0
votes
0
answers
19
views
How to get user list from discord using express.js
Hello everyone i have a question. I'm trying to create a list of players in express.js who have a given role. I'm creating this using discord.js but I can't format it properly to display it correctly. ...
2
votes
1
answer
32
views
My data isn't rendering on my page. The json seems to be pulling in correctly
I was practicing displaying data using handlebars and I am stuck. In my console I can see that it is pulling in the information from my api but my HTML within handlebars isn't rendering on the page. ...
0
votes
0
answers
35
views
Nodejs and Handlebars, parsing a string as an array
I am developing a website for a project. The main function of this website is to allow registered users to create, edit, and share wish lists that they create. This website is made using nodejs, ...
1
vote
1
answer
33
views
How to pass the value of a variable to a handlebars block
I am working on some HTML code that uses handlebars templates for storing some internal variables. I am not very familiar with handlebars so forgive me if my phrasing is a little off. Basically, my ...