Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question