<div>
<h1>{{ title }}</h1>
<p>
{{ text }}
</p>
</div>
var div = document.createElement('div');
var h1 = document.createElement('h1');
var p = document.createElement('p');
div.appendChild(h1);
div.appendChild(p);
...
view.update = function (data) {
h1.textContent = data.title;
p.textContent = data.text;
};
$sth->bindParam(1, 'TFAM', PDO::PARAM_STR);
$sth->bindValue(1, 'TFAM', PDO::PARAM_STR);