Mercurial > pub > ImplabJs
diff src/implab/text/template-compile.js @ 12:23be39fd3851
fixed typo in template-compile the built-in function 'print'
author | cin |
---|---|
date | Thu, 24 Aug 2017 04:30:11 +0300 |
parents | f0035923ff3e |
children | 7c22fc01fcec |
line wrap: on
line diff
--- a/src/implab/text/template-compile.js Mon Aug 21 18:06:30 2017 +0300 +++ b/src/implab/text/template-compile.js Thu Aug 24 04:30:11 2017 +0300 @@ -2,7 +2,7 @@ [ "dojo/request", "./format" ], function(request, format) { var compile = function(str) { - var code = "var p=[],print=function(){p.push(foramt.apply(null,arguments));};" + + var code = "var p=[],print=function(){p.push(format.apply(null,arguments));};" + // Introduce the data as local variables using with(){} "with(obj){p.push('" + // Convert the template into pure JavaScript