[stringtemplate-interest] Current C# Dev Version
Sam Harwell
sharwell at pixelminegames.com
Tue Aug 4 11:22:58 PDT 2009
When you say you were testing the latest beta, were you talking about
mine (3.2) or the one previously (before last weekend) posted as the
"latest beta (3.1)." :)
Sam
From: stringtemplate-interest-bounces at antlr.org
[mailto:stringtemplate-interest-bounces at antlr.org] On Behalf Of Dustin
A. Lambert
Sent: Tuesday, August 04, 2009 6:19 AM
To: stringtemplate-interest at antlr.org
Subject: [stringtemplate-interest] Current C# Dev Version
Greetings,
I've been testing the latest C# beta and discovered a problem...
If I set a template parameter to an object of System.DateTime like so:
var master = Global.Templates.GetInstanceOf("master");
master.SetAttribute("Today", System.DateTime.Now);
And then in the template do something like this:
<p>© 2008- $Today.Year$ . All rights reserved.</p>
$Today.Year$ comes out as a weird number... i.e. "(c) 2008- 10540 "
I checked for custom renderers and did not find any..
?master.GetAttributeRenderer(typeof(DateTime))
null
?master.GetAttributeRenderer(typeof(int))
null
Any suggestions?
Thanks!
Dustin Lambert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20090804/463da4e5/attachment-0001.html
More information about the stringtemplate-interest
mailing list