StringTemplate remove < > as delimiters

前端 未结 3 1448
误落风尘
误落风尘 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:50

    When creating a group you can set the delimiters by using

    STGroup group = new STGroupDir("emails", '$','$');
    

    Where '$' and '$' are your delimiters.

提交回复
热议问题