# HG changeset patch # User cin # Date 1503538211 -10800 # Node ID 23be39fd385119d1d22b412f37f48b61b2cbbfed # Parent 67a5de7581ad08c06fa97a198beb074809a17449 fixed typo in template-compile the built-in function 'print' diff -r 67a5de7581ad -r 23be39fd3851 src/implab/text/template-compile.js --- 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