changed res.send(JSON.stringify()); to res.json(). closes #25

This commit is contained in:
Baris Usakli
2013-06-20 15:08:33 -04:00
parent 3f3d81de44
commit cef77c2fd8
4 changed files with 28 additions and 33 deletions

View File

@@ -168,7 +168,8 @@
function parse_template() {
if (!templates[tpl_url] || !template_data) return;
document.getElementById('content').innerHTML = templates[tpl_url].parse(JSON.parse(template_data));
//document.getElementById('content').innerHTML = templates[tpl_url].parse(JSON.parse(template_data));
document.getElementById('content').innerHTML = templates[tpl_url].parse(template_data);
jQuery('#content [template-variable]').each(function(index, element) {
var value = null;
@@ -289,9 +290,6 @@
})(data, "", template);
}
if ('undefined' !== typeof window) {
window.templates = module.exports;
templates.init();