package gen

func entryScript() string {
	return `
var system=sys();
var Tpl={};
Tpl.funcs={};
Tpl.funcs.world=function(name){
	return name+",world"
}
Tpl.getTplFuncs=function(){
	var rst=[]
	for (var prop in Tpl.funcs){
		if (Tpl.funcs.hasOwnProperty(prop)){
			rst.push(prop)
		}
	}
	return rst
}
`
}

package gen

func entryScript() string {
	return `
var system=sys();
`
}

--- 
+++ 
@@ -3,5 +3,19 @@
 func entryScript() string {
 	return `
 var system=sys();
+var Tpl={};
+Tpl.funcs={};
+Tpl.funcs.world=function(name){
+	return name+",world"
+}
+Tpl.getTplFuncs=function(){
+	var rst=[]
+	for (var prop in Tpl.funcs){
+		if (Tpl.funcs.hasOwnProperty(prop)){
+			rst.push(prop)
+		}
+	}
+	return rst
+}
 `
 }
Add Tpl to the entry script
