7,699 questions
0
votes
0
answers
21
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
47
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
25
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
48
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
38
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
184
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
228
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
62
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
48
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
31
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
75
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
190
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
45
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
114
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
37
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
24
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
68
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
27
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
57
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
154
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
55
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
38
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
38
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
29
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
122
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
103
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
64
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
271
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
46
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
200
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
64
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
47
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
62
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
79
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
65
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
214
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
--...
1
vote
1
answer
324
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
65
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
39
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
60
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
46
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
48
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 ...