0
У меня есть два файла, JsИспользование Глоток для вставки HTML в JS
(function (Controllers) {
var DialogElement = (function() {
function DialogElement() {
this._template = "include:'Views/Dialog.html'";
}
return DialogElement;
}());
Controllers.DialogElement = DialogElement;
})(Controllers));
и HTML
<div>Simple dialog!</div>
Я хочу использоваться глотка заменяет переменную this._template = "include:'Views/Dialog.html'";
на содержимое HTML-файла.
Чтобы получить так:
function DialogElement() {
this._template = "<div>Simple dialog!</div>";
}
Может быть есть плагин подходит для этого?