M
M
Maxim2015-06-01 20:44:16
backbone.js
Maxim, 2015-06-01 20:44:16

What is the correct way to use Handlebars?

Hello. Project on backbone + marionette.
I collect *.hbs templates with the gulp-handlebars plugin. I load the template
template = require("./template");
and get the output of the function to which I need to transfer data. But I would like, as in the case of the text.js plugin, to get regular html output as a string.
Tell me how to do this and is it possible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Ineshin, 2015-06-01
@IonDen

So after all, handlebars templates are compiled into functions that return the finished html. This is good.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question