Questions tagged [hbs]

83 questions
0
votes
0 answers

Error: Failed to lookup view "home" in views directory "C:\Users\Lenovo T460p\Desktop\Node-tut\MainPage\mernbackend\src\views at Function.render

ERROR: Error: Failed to lookup view "home" in views directory "C:\Users\Lenovo T460p\Desktop\Node-tut\MainPage\mernbackend\src\views" at Function.render (C:\Users\Lenovo…
0
votes
0 answers

Not able to display html page(stored in a variable) in the .hbs file

Not able to display output in form of html table when rendered to the .hbs file. When I write res.send() it displays in the HTML format that I wanted to show but when I do res.render it does not display it in the HTML format instead it also shows my…
0
votes
1 answer

value attribute in hbs not showing string after space

Inside my product.productName = Smart Phones, but it only shows 'Smart' inside the input…
robin me
  • 3
  • 2
0
votes
0 answers

how to render the image from AWS in hbs with nodejs

I am new to AWS and node.js, I'm trying to fetch the image from the AWS S3 bucket in a simple image.hbs page but I don't know how to do this. image.hbs
sumanth
  • 318
  • 1
  • 6
  • 25
0
votes
0 answers

How to get the total value of this payments method

Tried so many methods but did not work how can I get it total from the client side JavaScript to the payment gateway function() {     // VARS     const productsContainer = document.querySelector("#grid");     const…
0
votes
1 answer

How to loop using Mustache in my ktor kotlin android project

I am making an android application with Kotlin using the framework Ktor where the android device act as the server and you can connect to it using your browsers in other devices. I have been able to get to the spot where my .hbs file (which is the…
0
votes
0 answers

How to use script tags inside .hbs file

I am going crazy about this issue. I am trying to assign a js function to a input-field on a .hbs file adding on the same file a tag script where I have written the event function. Please, someone could give me an example of how to do it?
0
votes
1 answer

How to programmatically insert an Ember component into a div?

I am trying to figure out a way to use Ember components as a view template for tooltips. Let me explain this: I am supposed to create a library to show tooltips in Ember. The content of this tooltip is unknown. It might be very complex or it might…
Athus Vieira
  • 403
  • 1
  • 4
  • 14
0
votes
0 answers

nestjs - using hbs / static content with controllers in subfolders

Using hbs as described in the nestjs docs works fine with the top level app controller. But for controllers which are located in subfolders the static content are not rendered / found by hbs. main.ts (as usual): async function bootstrap() { try { …
joerg
  • 1
0
votes
1 answer

How to print index+1 in a table with #each loop on hbs file using Node js

I want to put the serial no. in the table inside the #each loop, In the .hbs file I tried this: {{#each item}} {{@index}} {{/each}} But this prints the index from 0, I want to start it from 1, How do I do it?
Sojo C Johny
  • 126
  • 8
0
votes
1 answer

How do i put the serial number in each table row while using {{#each}} loop in handlebars?

I am creating a table to show list of items from the database, but how do I put the serial No. for the list when using an {{#each}} loop: …
0
votes
0 answers

Error: ENOENT: no such file or directory, open '/backend/views/layouts/main.hbs'

I'm trying to use handlebars to create templates for emails that I am sending through nodemailer. I'm currently, get an error saying Error: ENOENT: no such file or directory, open '/backend/views/layouts/main.hbs'. I have tried doing what both…
pelotador.1
  • 195
  • 1
  • 12
0
votes
0 answers

Failed to lookup view \"orders\" in views directory

I'm trying to use handlebars with nodemailer in order to create a template for emails. Also, I'm trying to get the data from my mongodb database to be able to be displayed on this template. Nodemailer is working perfectly fine, but I've never used…
pelotador.1
  • 195
  • 1
  • 12
0
votes
1 answer

error in creating schema for login registration

I am trying to create a login registration using hbs , node js and mongodb . I am getting an unexpected error of undefined hbs form
0
votes
1 answer

Convert template in .hbs to .jsx

I have a template file in .hbs, i need to convert to .jsx , but i have difficulty in the if else condition for th element in table. This is in .hbs
{{#if show_trust}} …
Arif
  • 49
  • 1
  • 9
No.
Amount Trust Account