[stringtemplate-interest] Generating JSON using StringTemplate

p_machner at poczta.fm p_machner at poczta.fm
Tue Nov 15 06:20:47 PST 2011


Thanks a lot for your tip Johan :) I was considering this solution, it should allow me to do what I need but it has one disadvantage - it will clutter up my templates with something like 'format="string"' in many many places and this is something I've wanted to avoid.
Any other ideas?

Thanks and best regards,
Piotr

"Johan Stuyts" <j.stuyts at javathinker.com> pisze:
> > Any ideas on how this escaping can be easily achieved?
> 
> You have to specify the format option in the template, and detect it in  
> the attribute renderer:
> 
> 
> Regards,
> 
> Johan
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
> 



----------------------------------------------------------------
Masz strone www? Dodaj ja do katalogu!
Sprawdz >>  http://linkint.pl/f2a8a


More information about the stringtemplate-interest mailing list