7,696 questions
-1
votes
1
answer
14
views
Eslint a11y plugin for handlebars [closed]
I'm just wondering if someone knows about ESLint Plugin for accessibility specifically using handlebars?
Atm, i can only see for vue, react, jxs. Can someone help me?
I tried researching and looking ...
1
vote
0
answers
32
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
27
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
33
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
32
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
39
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
30
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
53
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
36
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
125
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 ...