是否可以在 ftl 中命名一些块并将它们放在 java 端?例如像语法不正确的东西
#emailSubject[
This is email subject]
#emailMessage
[Email multi-
line message!!
Hi all]
和java端看起来像
template.process("template.ftl", resultModelOrSomethingElse);
String emailSubject = resultModelOrSomethingElse.getEmailSubject();
String emailMessag = resultModelOrSomethingElse.getEmailMessage();