Questions tagged [Handlebars] (61)

1
answer

Express + Handlebars. How to connect a header and footer?

As for hbs to connect the header and footer to the body in the same way as, for example, can be done in php: // some html Or maybe in some hbs has its own principles that should be used?
Forest.Walker asked April 4th 20 at 13:39
1
answer

It is possible to insert php code into salanization handlebars??

Going tomorrow to start making the website for humans. For the control system is necessary to use webasyst ( shop-script). I myself am more with the front of friends, but in PHP + SECO. And here to me such a strange idea came after the holidays. I read a little Doc. The input file is actually index.html connect via tag othe...
june77 asked April 4th 20 at 01:05
1
answer

How to work production Assembly at SSR?

I have the Assembly express-handlebars, during development I run a server through the file server and the webpack-dev-middleware. All handlebars files I have are in fact not using webpack, and using express-handlebars, on the server files Campiglio in the html and I see the result. The question of how this should work throu...
1
answer

As for the handlebars to check the current browser?

you need to get the name of the current browser ie or edge.
elwin.Litt asked March 31st 20 at 22:05
1
answer

How to catch the event when the Handlebars shaped pattern?

Tell me this moment how to catch events that rendered Handlebars template. Ajax loaded data, after is building a template. And it turns out that the function of Ajax request "complete" is triggered sooner than Handlebars templates build on the data.$.ajax({ url: urlData, type: "get", async: true, cache: false, timeout...
Baby_Leannon asked March 25th 20 at 13:03
1
answer

How to use a custom helper in each?

How to use custom helper clear. But how to use it and register if I have an array and I iterate it using each? A small example (running jsfiddle.net)var dataTest = { total: 4, invoices: [ { id: 1, var1: 354, var2: 'Test1', }, { id: 2, var1: 300, var2: 'Test2', }, { id: 3, var1: 124, var2: 'Test3', }, { id: 4,...
Janis_Wolff27 asked March 25th 20 at 13:00
1
answer

How can I change layout depending on roat?

How to change layout depending on the routing, you need to change the default layout with layout admin?At the entry point settings of the handlebars and getconst express = require('express'), app = express(), hbs = require('hbs'); app.set('views', path.join(__dirname, 'views')); app.set('view engine', 'hbs'); hbs.registerP...
letitia_Shanahan asked March 23rd 20 at 19:29
1
answer

As to the elements of nested array in handlebars?

There is evidence: var birthday = { day: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], month: [[1, 'Jan'], [2, 'Feb'], [3, 'Mar'], [4, 'April'], [5, 'May'], [6, 'June'], [7, 'July'], [8, 'August'], [9, 'September'], [10, 'October'], [11, 'November'], [...
christelle.Mitchell92 asked March 19th 20 at 08:59
1
answer

Can I use more than one app.render()?

There is the question of how to do the same task, at the conclusion of the news, without the use of a large number of app.render(). Is it possible to use only one app.render()? Code: const express = require('express') const app = express(); const hbs = require('handlebars') const cons = require('consolidate'); const bodyPa...
harmony.Casper asked March 18th 20 at 22:17
0
answer

How to make carousel on two elements bootstrap on handlebars c dynamic data?

Good afternoon. There is an array of data events (data) that are loaded in handlbar. For example 9 events in the array.Res. render(path.join(getSolutionViewFolder(), 'startPage.hbs'), { layout: path.join(getSolutionViewFolder(), 'mainLayout.hbs'), data: data }); In the hbs I output data through each piece in a carousel u...
Robin_Grimes asked March 16th 20 at 13:42