Questions tagged [Handlebars] (61)

0
answer

As a frontend project for gulp to move on with scss on express.js + handlebars?

Recently started to learn express.js. Want to migrate your site made it on + handlebars and not lose the opportunity to scale the front is already on the Express. How to work with scss? What is the complete algorithm web full stack development and how best to proceed?
Cleve_Bruen asked April 19th 20 at 12:45
1
answer

How to use a dependency when rendering the village the handlebars?

Good day, just recently started to get acquainted with the backend, so do not throw Slippers) Used a bunch Express + Handlebars. There is a certain page that I, for displaying, respectively render. This page is your script that I would like to use one of the dependencies declared in index.js. Now it looks like this and i...
Alia76 asked April 9th 20 at 09:36
1
answer

Express + express-handlebars output certain data from the database on every page?

Friends, sorry maybe this question will sound stupid! I have partilas footer.hbs and head.hbs in these templates from the database mongodb, I want to add microdata data stored in the collection of microdata for example , the data shared must be displayed on each page. I know one way to pass data with each request. But per...
Shemar.Cole88 asked April 7th 20 at 09:23
0
answer

How to connect json to the handlebars?

The question arose. Let's say I have on page-h1, which I want to put {{ title }}, which is in a separate json as what I need to connect and do to my h1 got the text from the json? To have something like this tryhandlebarsjs.com
keven.Graham28 asked April 7th 20 at 08:50
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