Answer the question
In order to leave comments, you need to log in
How to make a popup using handlebars?
Hello, in general, I decided to make a popup, and with the help of handlebars make it a "shell" in order to use it
somehow like this: I create a popup.hbs
file in the partials folder
<div class="popup-bg">
<div class="popup-container">
// вот тут должен быть контент popup'a
</div>
</div>
// какой-то код...
{{>popup}}
// какой-то код...
{{>popup}}
// и сюда писать код, который будет внутри popup-container
{{/popup}}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question