StringTemplate remove < > as delimiters

前端 未结 3 1453
误落风尘
误落风尘 2021-01-18 10:35

I am trying to use StringTemplate in a java web app to generate html emails. When trying to enter line breaks, I use \\ This does not seem to be wo

3条回答
  •  礼貌的吻别
    2021-01-18 10:57

    At the top of the template group file (.stg) you can put:

    delimiters "$", "$"
    

    ...or whatever delimiters you would like. More information is at: https://theantlrguy.atlassian.net/wiki/display/ST4/Group+file+syntax

提交回复
热议问题