[stringtemplate-interest] Mappings inside of string template

Kunle Odutola Kunle_Odutola at hotmail.com
Wed Jul 26 11:11:48 PDT 2006


Brian

> Hi
>
> I asked the previous question because either there is a bug in the VS 2005
> String Template library or I'm stupid. I think it's because I'm stupid. :)
>
> If I create the following stg file ...
>
> group test;
>
> mapping ::= ["One":"1", default:"0"]
>
> .. then I create the following st file ....
>
> $mapping.One$
>
> .. then the results are an empty string.
>
> Am I doing something wrong? Should I include my C# code as well.

Can't say yet but, I am not aware of any outstanding issues with maps in the
ST#.  And, yeah...paste the relevant C# code.

>From your description above above, I suspect that you are talking about two
separate files here (i.e. the template is not defined in the group file but
in a separate *.st file).

Kunle


More information about the stringtemplate-interest mailing list