[stringtemplate-interest] outputting current template file and line number?
Barrie Treloar
baerrach at gmail.com
Wed Jul 22 23:43:07 PDT 2009
On Thu, Jul 23, 2009 at 3:26 PM, Terence Parr<parrt at cs.usfca.edu> wrote:
> Can you override STG and change the functionality?
Hmm, I didn't think of that.
For STG and emitting debug start and stop tags, I think the answer is yes.
To get Template filename and line the expression chunk is in the
StringTemplate.write(StringTemplateWriter out) method in the for loop.
So it would be a cut-and-paste extension... I'll give it a go and see
what happens.
More information about the stringtemplate-interest
mailing list