From 8d51d9ea02a3b0bd14afc03752f7af94bb12861f Mon Sep 17 00:00:00 2001 From: sekiyika Date: Thu, 15 Aug 2013 12:51:28 +0800 Subject: [PATCH] change app to window --- README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README b/README index 4ceacd0..1eb0f6f 100644 --- a/README +++ b/README @@ -18,7 +18,7 @@ Feature: 4. Support developers custom template function var template = '<% output("custom function"); %>'; - app.tpl(template, {}, { + window.tpl(template, {}, { fns : { output : 'function(str){__s += str}' } @@ -105,7 +105,7 @@ Feature: encodeHTMLAndPrint(str); %> - app.tpl(template, {}, { + window.tpl(template, {}, { fns : { encodeHTMLAndPrint : 'function(s){print(encodeHTML(s))}' }