equal
deleted
inserted
replaced
2 // as the PHP version - constructor accepts text, then the assign_vars, assign_bool, and run methods. |
2 // as the PHP version - constructor accepts text, then the assign_vars, assign_bool, and run methods. |
3 |
3 |
4 window.templateParser = function(text) |
4 window.templateParser = function(text) |
5 { |
5 { |
6 this.tpl_code = text; |
6 this.tpl_code = text; |
7 this.tpl_strings = new Object(); |
7 this.tpl_strings = {}; |
8 this.tpl_bool = new Object(); |
8 this.tpl_bool = {}; |
9 this.assign_vars = __tpAssignVars; |
9 this.assign_vars = __tpAssignVars; |
10 this.assign_bool = __tpAssignBool; |
10 this.assign_bool = __tpAssignBool; |
11 this.fetch_hook = __tpFetchHook; |
11 this.fetch_hook = __tpFetchHook; |
12 this.run = __tpRun; |
12 this.run = __tpRun; |
13 } |
13 } |