Permalink
Browse files

Merge pull request #6 from wangxiao/master

1.0.1版本
  • Loading branch information...
2 parents 2db0e4c + aefe0d4 commit f4ae0ccbb01ae8158050235ea528a4e8d3a3c272 百度FE committed May 22, 2012
View
BIN JS模板引擎功能说明及单元测试用例.pdf
Binary file not shown.
View
2 baiduTemplate.js
@@ -84,7 +84,7 @@
//将字符串拼接生成函数,即编译过程(compile)
var compile = function(str){
return new Function("_template_object",
- "var _template_fun_array=[];"+"with(_template_object){_template_fun_array.push('"+analysisStr(str)+"');}return _template_fun_array.join('');"
+ "var _template_fun_array=[];with(_template_object){_template_fun_array.push('"+analysisStr(str)+"');}return _template_fun_array.join('');"
);
};
View
BIN mind picture.pdf
Binary file not shown.

0 comments on commit f4ae0cc

Please sign in to comment.