[Templates] inline version info in templates

[prev] [thread] [next] [Date index for 2004/09/20]

From: Jamie Echlin
Subject: [Templates] inline version info in templates
Date: 08:51 on 20 Sep 2004
Hi,

Has anyone any thoughts about putting version control info in templates 
so that after taking them out of the source code control system, and 
possibly distributing to users, a user can see which versions they are?

I am using RCS keyword expansion - I'd like to be able to do:

	template.version = "$Id: $";

or

	template.METADATA.version = "$Id: $";

but don't seem to be able to, so just

version = "$Id: $";

will do.

Now, in one particular template I want to be able to parse all the other 
templates in the same directory to get their version string - but not 
actually "execute" them because I don't want anything to be printed out. 
So INCLUDE or PROCESS is not appropriate I think.

Alternatively I could hack the TT source I guess to add a version key to 
the Template::Document class.

Sorry this is so woolly, just trying to work through some ideas... if 
anyone has done something similar would be grateful for advice.

cheers, jamie


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] Creating XML in TT2
Tosh Cooey 23:22 on 19 Sep 2004

Re: [Templates] Creating XML in TT2
Dave Cross 05:10 on 20 Sep 2004

[Templates] inline version info in templates
Jamie Echlin 08:51 on 20 Sep 2004

Re: [Templates] inline version info in templates
merlyn (Randal L. Schwartz) 12:39 on 20 Sep 2004

Re: [Templates] inline version info in templates
Buddy Burden 17:09 on 20 Sep 2004

Re: [Templates] Creating XML in TT2
Roderick A. Anderson 16:05 on 20 Sep 2004

Re: [Templates] Creating XML in TT2
Tosh Cooey 13:40 on 21 Sep 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52