renovations

This commit is contained in:
Ilya Kantor 2015-02-21 00:59:02 +03:00
parent 24171550ae
commit a62682e188
49 changed files with 620 additions and 894 deletions

View file

@ -16,10 +16,12 @@
</script>
<script>
var tmpl = document.getElementById('menu-template').innerHTML;
var tmpl = _.template(
document.getElementById('menu-template').innerHTML,
{sourceURL: '/template/menu-template'}
);
var compiled = _.template(tmpl, null, {sourceURL: '/template/menu-template'});
var result = compiled({ title: "Заголовок" });
var result = tmpl({ title: "Заголовок" });
document.write(result);
</script>