我想知道下面的声明/宏是用来做什么的(我正在呈现一个自定义的JSON响应):
<@compress single_line=true>
{
attribute_1: ${my_model.attribute_1},
attribute_2: ${my_model.attribute_2},
attribute_3: ${my_model.attribute_3},
}
</@compress>谢谢。
发布于 2018-09-21 22:45:21
这是FreeMarker的一项功能,请参阅https://freemarker.apache.org/docs/dgui_misc_whitespace.html
https://stackoverflow.com/questions/52441065
复制相似问题