includes/clientside/static/template-compiler.js
changeset 1280 871f17a0d27d
parent 1269 35986c6b2150
child 1291 a971f6efcb7b
--- a/includes/clientside/static/template-compiler.js	Fri Jul 30 21:31:30 2010 -0400
+++ b/includes/clientside/static/template-compiler.js	Fri Jul 30 21:32:05 2010 -0400
@@ -39,6 +39,7 @@
 		catch(e)
 		{
 			alert(e);
+			load_component('acl');
 			aclDebug(tpl_code);
 		}
 		return compiled;
@@ -60,6 +61,7 @@
 	code = code.replace(/\<!-- IFSET ([A-z0-9_-]+) --\>([\s\S]*?)\<!-- END \1 --\>/ig, "' + ( ( typeof(this.tpl_strings['$1']) == 'string' ) ? '$2' : '' ) + '");
 	code = code.replace(/\<!-- BEGIN ([A-z0-9_-]+) --\>([\s\S]*?)\<!-- BEGINELSE \1 --\>([\s\S]*?)\<!-- END \1 --\>/ig, "' + ( ( this.tpl_bool['$1'] == true ) ? '$2' : '$3' ) + '");
 	code = code.replace(/\<!-- BEGIN ([A-z0-9_-]+) --\>([\s\S]*?)\<!-- END \1 --\>/ig, "' + ( ( this.tpl_bool['$1'] == true ) ? '$2' : '' ) + '");
+	code = code.replace(/\<!-- BEGINNOT ([A-z0-9_-]+) --\>([\s\S]*?)\<!-- END \1 --\>/ig, "' + ( ( this.tpl_bool['$1'] == false ) ? '$2' : '' ) + '");
 	code = code.replace(/\<!-- HOOK ([A-z0-9_-]+) --\>/ig, "' + this.fetch_hook('$1') + '");
 	return code;
 }