This commit is contained in:
Baris Soner Usakli
2013-12-22 15:15:59 -05:00
parent 3752a1c691
commit 680dbf138a
6 changed files with 80 additions and 73 deletions

View File

@@ -123,6 +123,11 @@
}
templates.preload_template = function(tpl_name, callback) {
if(templates[tpl_name]) {
return callback();
}
// TODO: This should be "load_template", and the current load_template
// should be named something else
// TODO: The "Date.now()" in the line below is only there for development purposes.
@@ -355,7 +360,7 @@
template = template.replace(regex, '');
namespace = '';
}
// clean up all undefined conditionals
template = template.replace(/<!-- IF([^@]*?)ENDIF([^@]*?)-->/gi, '');