java
2023-02-14
2023-02-14
读而未晓则思,思而未晓则读——朱熹
官方文档:https://freemarker.apache.org/docs/dgui_quickstart_template.html
语法如下:<#list sequence as loopVariable>repeatThis</#list>
例如模板如下:
1 | <p>We have these animals: |
就会生成
1 | <p>We have these animals: |
这里animal
等于是数组里每一项