瀏覽代碼

- version

Laurent Bedubourg 19 年之前
父節點
當前提交
e5d8e06958
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      std/mtwin/templo/Template.hx

+ 3 - 1
std/mtwin/templo/Template.hx

@@ -28,6 +28,8 @@ import haxe.Md5;
 
 
 class Template {
 class Template {
 
 
+	static var VERSION = "0.9.0";
+
 	public static var compiledFiles : Hash<Bool> = new Hash();
 	public static var compiledFiles : Hash<Bool> = new Hash();
 	public var execute : Dynamic -> String;
 	public var execute : Dynamic -> String;
 
 
@@ -91,7 +93,7 @@ class Template {
 		var p = new mtwin.templo.Parser();
 		var p = new mtwin.templo.Parser();
 		var s = p.parse(x);
 		var s = p.parse(x);
 
 
-		s = "// generated from " + id + "\n//" + src.split("\n").join("//") + "\n" + s;
+		s = "// generated from " + id + "\n// temploc v"+mtwin.templo.Template.VERSION+"\n" + s;
 
 
 		var f = neko.io.File.write(path, false);
 		var f = neko.io.File.write(path, false);
 		f.write(s);
 		f.write(s);