{ var fso = new ActiveXObject("Scripting.FileSystemObject"); var file = fso.BuildPath(this.TplPath, filename); if(fso.FileExists(file)) { var f = fso.OpenTextFile(file, 1); this[name] = f.ReadAll(); } }
//Template Constructor
function Template(path) { //Property this.TplPath = path;