[stringtemplate-interest] File based templates and maps.

Terence Parr parrt at cs.usfca.edu
Wed Oct 18 17:53:32 PDT 2006


On Oct 18, 2006, at 5:16 PM, Caleb Lyness wrote:

> Hi,
>
> I have been trying to use a map for file based templates. So far no  
> luck. Is this actually
> possible or have I missed the point. I have tried too many  
> combination to list them here, so
> I just list the last thing I tried:
>
> hash map defined in reason.st:
> ---
> $[
>   "1":"reason for 1",
>   "2":"reason for 2",
>   "D":"reason for D",
>   default : "unknown reason"
> ]$
> ---
>
> Now this would make some sense, no?

Hi, sorry.  Those maps only work in group file formats (.stg files).

Terence



More information about the stringtemplate-interest mailing list