[stringtemplate-interest] use <...> by default in ST groups?
Terence Parr
parrt at cs.usfca.edu
Mon Mar 6 16:17:31 PST 2006
On Mar 5, 2006, at 9:55 PM, Laurent Vaucher wrote:
>>
>> Should I make <...> the default delimiter with STG files? I can
>> leave $...$ default for not regular templates...
>>
>
> Hi.
>
> I'm not sure either choice is a better default.
hi :)
Well $...$ is a good default for file-based templates; mostly webbie
folks. People use formal group files are code gen folks and <...> is
probably better...
> Would it be possible to set the delimiters as an option in the file
> preamble? I once used a tool called CodeWorker, which had a
> "template engine", and the delimiters were deduced from the first
> line of the template. I think it was even possible to give
> character strings as delimiters. This was a nice solution because
> you could choose the delimiters so that they did not conflict with
> the expected output grammar.
We could choose from those two, yes.
> (Sorry if I add a problem when you just asked for a simple
> answer :o)
;)
Ter
More information about the stringtemplate-interest
mailing list