Browse Source

- version

Laurent Bedubourg 19 years ago
parent
commit
e5d8e06958
1 changed files with 3 additions and 1 deletions
  1. 3 1
      std/mtwin/templo/Template.hx

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

@@ -28,6 +28,8 @@ import haxe.Md5;
 
 class Template {
 
+	static var VERSION = "0.9.0";
+
 	public static var compiledFiles : Hash<Bool> = new Hash();
 	public var execute : Dynamic -> String;
 
@@ -91,7 +93,7 @@ class Template {
 		var p = new mtwin.templo.Parser();
 		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);
 		f.write(s);