String Template uses <...>
or $...$
as delimiters. I need to have a custom delimiter, something like <<...>>
. Is this possible?
The code below accepts only character for the start and end delimiters:
ST st = new ST("<< token >>", '<<', '>>');
正如这个答案所述,不幸的是你只能在字符串模板中使用单个字符分隔符:(
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.