0
ich zwei Dateien haben, jsMit Schluck für HTML einfügen in js
(function (Controllers) {
var DialogElement = (function() {
function DialogElement() {
this._template = "include:'Views/Dialog.html'";
}
return DialogElement;
}());
Controllers.DialogElement = DialogElement;
})(Controllers));
und html
<div>Simple dialog!</div>
I schluck verwendet werden sollen ersetzt Variable this._template = "include:'Views/Dialog.html'";
auf den Inhalt der HTML-Datei.
Um so:
function DialogElement() {
this._template = "<div>Simple dialog!</div>";
}
es sein kann, ein Plugin geeignet dafür ist?